Skip to content

Commit

Permalink
Added scripts for GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
teejee2008 committed Mar 24, 2017
1 parent 3af59ee commit ea33e63
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .bzrignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ installer/amd64
installer/i386
installer/*.deb
installer/*.run
designs/
.git/
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
src/conky-manager
installer/amd64
installer/i386
installer/*.deb
installer/*.run
designs/
.bzr/
15 changes: 10 additions & 5 deletions conky-manager.geany
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ long_line_behaviour=1
long_line_column=72

[files]
current_page=4
current_page=8
FILE_NAME_0=30;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FAboutWindow.vala;0;4
FILE_NAME_1=33;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FDonationWindow.vala;0;4
FILE_NAME_2=34;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FEditThemeWindow.vala;0;4
FILE_NAME_3=35;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FEditWidgetWindow.vala;0;4
FILE_NAME_4=2069;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FGeneratePreviewWindow.vala;0;4
FILE_NAME_5=1286;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FMain.vala;0;4
FILE_NAME_4=2589;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FGeneratePreviewWindow.vala;0;4
FILE_NAME_5=21828;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FMain.vala;0;4
FILE_NAME_6=29;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FMainWindow.vala;0;4
FILE_NAME_7=29;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FSettingsWindow.vala;0;4
FILE_NAME_8=26;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FUtility.vala;0;4
FILE_NAME_8=10722;Vala;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2FUtility.vala;0;4
FILE_NAME_9=1744;Make;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fsrc%2Fmakefile;0;4
FILE_NAME_10=167;Conf;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fdebian%2Fcontrol;0;4
FILE_NAME_11=206;None;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fdebian%2Fchangelog;0;4
FILE_NAME_11=139;None;0;EUTF-8;1;1;1;%2Fhome%2Fteejee%2Fprojects%2Flinux%2Fconky-manager%2Fdebian%2Fchangelog;0;4

[VTE]
last_dir=/home/teejee
Expand All @@ -57,3 +57,8 @@ EX_00_WD=
EX_01_LB=Execute (sudo)
EX_01_CM=gksu ./conky-manager
EX_01_WD=

[editor]
line_wrapping=true
line_break_column=72
auto_continue_multiline=true
4 changes: 2 additions & 2 deletions conky-manager.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Tony George ([email protected])
# This file is distributed under the same license as the PACKAGE package.
# This file is distributed under the same license as the conky-manager package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: conky-manager 2.0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2015-10-21 18:29+0530\n"
"POT-Creation-Date: 2017-03-24 22:33+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
21 changes: 21 additions & 0 deletions git-add-origin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

echo "Adding Git origin..."
git remote add origin [email protected]:teejee2008/conky-manager.git

#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi

cd "$backup"




19 changes: 19 additions & 0 deletions git-push-reinit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

echo "Re-initializing Git repo and pushing changes..."
git push --force --set-upstream origin master

#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi

cd "$backup"


19 changes: 19 additions & 0 deletions git-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

echo "Pushing local changes to Git repo..."
git push -u origin master

#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi

cd "$backup"


21 changes: 21 additions & 0 deletions git-sync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

echo "Updating local Git repo..."
bzr fast-export --plain . | git fast-import

#check for errors
if [ $? -ne 0 ]; then
cd "$backup"
echo "Failed"
exit 1
fi

cd "$backup"




Binary file added icons/conky-manager-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/conky-manager-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/conky-manager-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions list-todo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

grep -n --color=always -R TODO src/
33 changes: 33 additions & 0 deletions src/XidHelper.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* XidHelper.vala
*
* Copyright 2016 Tony George <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/


/*
This code needs to be in a separate .vala file to avoid build errors with the vala compiler
*/

using Gtk;

public uint get_widget_xid(Gtk.Widget widget){
return (uint) (((Gdk.X11.Window) widget.get_window()).get_xid());
}

0 comments on commit ea33e63

Please sign in to comment.