summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.Xresources1
-rw-r--r--.config/terminator/config14
-rw-r--r--.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml312
-rw-r--r--.zshrc2
-rw-r--r--Scripts/mayHem.py30
-rw-r--r--Scripts/overleafUp.sh4
-rw-r--r--Scripts/pythonSocket.py23
-rwxr-xr-xScripts/volume-change.py2
-rw-r--r--Scripts/whileUdDown.sh12
9 files changed, 75 insertions, 325 deletions
diff --git a/.Xresources b/.Xresources
index b7c7bb1..ba1585f 100644
--- a/.Xresources
+++ b/.Xresources
@@ -36,3 +36,4 @@ URxvt.url-select.video: mpv
URxvt.url-select.button: 1
! Mine farver
+
diff --git a/.config/terminator/config b/.config/terminator/config
index ee580ff..968b85b 100644
--- a/.config/terminator/config
+++ b/.config/terminator/config
@@ -16,26 +16,21 @@
[plugins]
[profiles]
[[default]]
- antialias = False
background_color = "#102313"
- background_darkness = 0.86
- background_image = None
+ background_darkness = 0.92
background_type = transparent
cursor_color = "#ffffff"
custom_command = TERM=xterm-256color tmux
- font = Terminus 10
+ font = xos4 Terminus 10
foreground_color = "#ffffff"
palette = "#050505:#b81109:#1cb228:#baa407:#2c5fad:#e35682:#16a085:#ffffff:#1c1b19:#e8160c:#24e534:#fcdf09:#408afc:#e02c6d:#1abc9c:#ebe3e3"
- scroll_on_output = False
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
use_system_font = False
[[Old]]
- antialias = False
background_color = "#100935"
background_darkness = 0.49
- background_image = None
background_type = transparent
custom_command = tmux
font = Terminus 10
@@ -45,10 +40,8 @@
show_titlebar = False
use_system_font = False
[[auto]]
- antialias = False
background_color = "#032c36"
background_darkness = 0.82
- background_image = None
background_type = transparent
font = Terminus 10
foreground_color = "#e8dfd6"
@@ -57,10 +50,8 @@
show_titlebar = False
use_system_font = False
[[custom]]
- antialias = False
background_color = "#032c36"
background_darkness = 0.77
- background_image = None
background_type = transparent
cursor_color = "#e8dfd6"
font = Terminus 12
@@ -71,7 +62,6 @@
use_system_font = False
[[souceror]]
background_color = "#151515"
- background_image = None
cursor_color = "#c2c2b0"
foreground_color = "#c2c2b0"
palette = "#151515:#aa4450:#719611:#ff9800:#6688aa:#8f6f8f:#528b8b:#d3d3d3:#272822:#ff6a6a:#b1d631:#87875f:#90b0d1:#8181a6:#87ceeb:#c1cdc1"
diff --git a/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
deleted file mode 100644
index 4d8ec94..0000000
--- a/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
+++ /dev/null
@@ -1,312 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<channel name="xfce4-panel" version="1.0">
- <property name="panels" type="array">
- <value type="int" value="1"/>
- <property name="panel-0" type="empty">
- <property name="position" type="string" value="p=6;x=0;y=0"/>
- <property name="length" type="uint" value="100"/>
- <property name="position-locked" type="bool" value="true"/>
- <property name="plugin-ids" type="array">
- <value type="int" value="1"/>
- <value type="int" value="2"/>
- <value type="int" value="3"/>
- <value type="int" value="4"/>
- <value type="int" value="5"/>
- <value type="int" value="6"/>
- <value type="int" value="7"/>
- <value type="int" value="8"/>
- </property>
- <property name="background-style" type="uint" value="0"/>
- <property name="background-alpha" type="uint" value="80"/>
- <property name="size" type="uint" value="24"/>
- <property name="length-adjust" type="bool" value="true"/>
- <property name="span-monitors" type="bool" value="false"/>
- <property name="enter-opacity" type="uint" value="100"/>
- <property name="leave-opacity" type="uint" value="100"/>
- <property name="mode" type="uint" value="0"/>
- <property name="autohide-behavior" type="uint" value="0"/>
- <property name="disable-struts" type="bool" value="false"/>
- <property name="nrows" type="uint" value="1"/>
- </property>
- <property name="panel-1" type="empty">
- <property name="autohide-behavior" type="uint" value="0"/>
- <property name="background-alpha" type="uint" value="100"/>
- <property name="background-style" type="uint" value="0"/>
- <property name="disable-struts" type="bool" value="false"/>
- <property name="enter-opacity" type="uint" value="100"/>
- <property name="leave-opacity" type="uint" value="100"/>
- <property name="length" type="uint" value="100"/>
- <property name="mode" type="uint" value="0"/>
- <property name="nrows" type="uint" value="1"/>
- <property name="plugin-ids" type="array">
- <value type="int" value="1"/>
- <value type="int" value="2"/>
- <value type="int" value="3"/>
- <value type="int" value="6"/>
- <value type="int" value="4"/>
- <value type="int" value="5"/>
- </property>
- <property name="position" type="string" value="p=8;x=512;y=752"/>
- <property name="position-locked" type="bool" value="true"/>
- <property name="size" type="uint" value="30"/>
- <property name="length-adjust" type="bool" value="true"/>
- </property>
- <property name="panel-2" type="empty">
- <property name="autohide-behavior" type="uint" value="0"/>
- <property name="background-alpha" type="uint" value="100"/>
- <property name="background-style" type="uint" value="0"/>
- <property name="disable-struts" type="bool" value="false"/>
- <property name="enter-opacity" type="uint" value="100"/>
- <property name="leave-opacity" type="uint" value="100"/>
- <property name="length" type="uint" value="10"/>
- <property name="length-adjust" type="bool" value="true"/>
- <property name="mode" type="uint" value="0"/>
- <property name="nrows" type="uint" value="1"/>
- <property name="plugin-ids" type="array">
- <value type="int" value="8"/>
- <value type="int" value="9"/>
- <value type="int" value="10"/>
- <value type="int" value="11"/>
- <value type="int" value="12"/>
- <value type="int" value="13"/>
- <value type="int" value="14"/>
- <value type="int" value="15"/>
- </property>
- <property name="position" type="string" value="p=10;x=0;y=0"/>
- <property name="position-locked" type="bool" value="true"/>
- <property name="size" type="uint" value="48"/>
- </property>
- </property>
- <property name="plugins" type="empty">
- <property name="plugin-1" type="string" value="applicationsmenu">
- <property name="button-icon" type="string" value="xfce4-panel-menu"/>
- <property name="button-title" type="string" value="Start"/>
- <property name="custom-menu" type="bool" value="false"/>
- <property name="show-button-title" type="bool" value="true"/>
- <property name="show-generic-names" type="bool" value="false"/>
- <property name="show-menu-icons" type="bool" value="true"/>
- <property name="show-tooltips" type="bool" value="false"/>
- </property>
- <property name="plugin-2" type="string" value="tasklist">
- <property name="flat-buttons" type="bool" value="true"/>
- <property name="show-button-type" type="int" value="1"/>
- <property name="grouping" type="uint" value="0"/>
- <property name="include-all-monitors" type="bool" value="true"/>
- <property name="include-all-workspaces" type="bool" value="false"/>
- <property name="middle-click" type="uint" value="0"/>
- <property name="show-handle" type="bool" value="true"/>
- <property name="show-labels" type="bool" value="true"/>
- <property name="show-only-minimized" type="bool" value="false"/>
- <property name="show-wireframes" type="bool" value="false"/>
- <property name="sort-order" type="uint" value="1"/>
- <property name="switch-workspace-on-unminimize" type="bool" value="true"/>
- <property name="window-scrolling" type="bool" value="true"/>
- </property>
- <property name="plugin-3" type="string" value="separator">
- <property name="style" type="uint" value="0"/>
- <property name="expand" type="bool" value="true"/>
- </property>
- <property name="plugin-4" type="string" value="systray">
- <property name="show-frame" type="bool" value="true"/>
- <property name="size-max" type="uint" value="22"/>
- <property name="names-visible" type="array">
- <value type="string" value="network"/>
- <value type="string" value="networkmanager applet"/>
- <value type="string" value="telegram"/>
- <value type="string" value="blueman-applet"/>
- <value type="string" value="thunar"/>
- <value type="string" value="update-notifier"/>
- </property>
- <property name="items" type="array">
- <value type="string" value="14418443291.desktop"/>
- </property>
- <property name="miniature-view" type="bool" value="true"/>
- <property name="rows" type="uint" value="1"/>
- </property>
- <property name="plugin-5" type="string" value="clock">
- <property name="items" type="array">
- <value type="string" value="14418443522.desktop"/>
- </property>
- <property name="digital-format" type="string" value="%I:%M %p"/>
- <property name="mode" type="uint" value="2"/>
- <property name="show-frame" type="bool" value="true"/>
- <property name="tooltip-format" type="string" value="%A %d %B %Y"/>
- <property name="align-left" type="bool" value="false"/>
- <property name="mode-whitelist" type="bool" value="false"/>
- <property name="single-row" type="bool" value="false"/>
- <property name="known-indicators" type="array">
- <value type="string" value="libapplication.so"/>
- <value type="string" value="com.canonical.indicator.sound"/>
- <value type="string" value="com.canonical.indicator.messages"/>
- </property>
- </property>
- <property name="plugin-7" type="string" value="separator">
- <property name="style" type="uint" value="0"/>
- <property name="expand" type="bool" value="false"/>
- <property name="appearance" type="uint" value="1"/>
- <property name="ask-confirmation" type="bool" value="true"/>
- <property name="digital-format" type="string" value="%a, %d %b %H:%M"/>
- </property>
- <property name="plugin-8" type="string" value="clock">
- <property name="digital-format" type="string" value="%d %b, %H:%M"/>
- <property name="show-frame" type="bool" value="true"/>
- <property name="size-max" type="uint" value="22"/>
- <property name="names-visible" type="array">
- <value type="string" value="network"/>
- <value type="string" value="blueman-applet"/>
- </property>
- <property name="expand" type="bool" value="false"/>
- <property name="mode" type="uint" value="2"/>
- <property name="style" type="uint" value="0"/>
- <property name="tooltip-format" type="string" value="%A %d %B %Y"/>
- </property>
- <property name="plugin-10" type="string" value="separator">
- <property name="items" type="array">
- <value type="string" value="14418417141.desktop"/>
- </property>
- <property name="expand" type="bool" value="false"/>
- <property name="style" type="uint" value="0"/>
- </property>
- <property name="plugin-11" type="string" value="actions">
- <property name="flat-buttons" type="bool" value="false"/>
- <property name="grouping" type="uint" value="0"/>
- <property name="include-all-monitors" type="bool" value="true"/>
- <property name="include-all-workspaces" type="bool" value="false"/>
- <property name="show-handle" type="bool" value="true"/>
- <property name="show-labels" type="bool" value="true"/>
- <property name="show-only-minimized" type="bool" value="false"/>
- <property name="show-wireframes" type="bool" value="false"/>
- <property name="sort-order" type="uint" value="1"/>
- <property name="switch-workspace-on-unminimize" type="bool" value="true"/>
- <property name="window-scrolling" type="bool" value="true"/>
- <property name="items" type="array">
- </property>
- <property name="ask-confirmation" type="bool" value="true"/>
- <property name="digital-format" type="string" value="%a %b %d, %I:%M %p"/>
- <property name="mode" type="uint" value="2"/>
- <property name="show-frame" type="bool" value="true"/>
- <property name="tooltip-format" type="string" value="%A %d %B %Y"/>
- </property>
- <property name="plugin-12" type="string" value="separator">
- <property name="expand" type="bool" value="true"/>
- <property name="style" type="uint" value="0"/>
- <property name="items" type="array">
- </property>
- </property>
- <property name="plugin-13" type="string" value="showdesktop">
- <property name="miniature-view" type="bool" value="true"/>
- <property name="rows" type="uint" value="1"/>
- <property name="workspace-scrolling" type="bool" value="true"/>
- <property name="items" type="array">
- </property>
- <property name="expand" type="bool" value="true"/>
- <property name="flat-buttons" type="bool" value="false"/>
- <property name="grouping" type="uint" value="0"/>
- <property name="include-all-monitors" type="bool" value="true"/>
- <property name="include-all-workspaces" type="bool" value="false"/>
- <property name="show-handle" type="bool" value="true"/>
- <property name="show-labels" type="bool" value="true"/>
- <property name="show-only-minimized" type="bool" value="false"/>
- <property name="show-wireframes" type="bool" value="false"/>
- <property name="sort-order" type="uint" value="1"/>
- <property name="style" type="uint" value="0"/>
- <property name="switch-workspace-on-unminimize" type="bool" value="true"/>
- <property name="window-scrolling" type="bool" value="true"/>
- </property>
- <property name="plugin-9" type="string" value="pager">
- <property name="digital-format" type="string" value="%a %b %d, %I:%M %p"/>
- <property name="mode" type="uint" value="2"/>
- <property name="show-frame" type="bool" value="true"/>
- <property name="tooltip-format" type="string" value="%A %d %B %Y"/>
- <property name="expand" type="bool" value="false"/>
- <property name="items" type="array">
- <value type="string" value="14418417141.desktop"/>
- </property>
- <property name="style" type="uint" value="1"/>
- <property name="miniature-view" type="bool" value="true"/>
- <property name="rows" type="uint" value="1"/>
- <property name="show-names" type="bool" value="false"/>
- <property name="workspace-scrolling" type="bool" value="false"/>
- </property>
- <property name="plugin-14" type="string" value="separator">
- <property name="expand" type="bool" value="false"/>
- <property name="style" type="uint" value="1"/>
- <property name="items" type="array">
- <value type="string" value="14417693474.desktop"/>
- </property>
- <property name="show-handle" type="bool" value="false"/>
- </property>
- <property name="plugin-15" type="string" value="launcher">
- <property name="expand" type="bool" value="true"/>
- <property name="style" type="uint" value="0"/>
- <property name="base-directory" type="string" value="/home/julian"/>
- <property name="items" type="array">
- <value type="string" value="14294989531.desktop"/>
- </property>
- <property name="miniature-view" type="bool" value="true"/>
- <property name="rows" type="uint" value="1"/>
- <property name="workspace-scrolling" type="bool" value="true"/>
- </property>
- <property name="plugin-16" type="string" value="launcher">
- <property name="button-title" type="string" value="Start"/>
- <property name="items" type="array">
- <value type="string" value="14294989532.desktop"/>
- </property>
- </property>
- <property name="plugin-17" type="string" value="launcher">
- <property name="expand" type="bool" value="true"/>
- <property name="items" type="array">
- <value type="string" value="14294989533.desktop"/>
- </property>
- <property name="show-button-type" type="int" value="1"/>
- <property name="style" type="uint" value="0"/>
- </property>
- <property name="plugin-18" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989534.desktop"/>
- </property>
- </property>
- <property name="plugin-19" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989535.desktop"/>
- </property>
- </property>
- <property name="plugin-20" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989536.desktop"/>
- </property>
- </property>
- <property name="plugin-21" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989537.desktop"/>
- </property>
- <property name="style" type="uint" value="0"/>
- </property>
- <property name="plugin-22" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989538.desktop"/>
- </property>
- </property>
- <property name="plugin-23" type="string" value="launcher">
- <property name="items" type="array">
- <value type="string" value="14294989539.desktop"/>
- </property>
- <property name="show-handle" type="bool" value="false"/>
- </property>
- <property name="plugin-24" type="string" value="separator">
- <property name="expand" type="bool" value="false"/>
- <property name="style" type="uint" value="1"/>
- </property>
- <property name="plugin-25" type="string" value="directorymenu">
- <property name="base-directory" type="string" value="/home/julian"/>
- </property>
- <property name="plugin-26" type="string" value="thunar-tpa"/>
- <property name="plugin-27" type="string" value="separator">
- <property name="expand" type="bool" value="true"/>
- <property name="style" type="uint" value="0"/>
- </property>
- <property name="plugin-6" type="string" value="pager"/>
- </property>
- <property name="configver" type="int" value="2"/>
-</channel>
diff --git a/.zshrc b/.zshrc
index 7168d17..a105fe7 100644
--- a/.zshrc
+++ b/.zshrc
@@ -93,6 +93,7 @@ alias lemon="~/.config/openbox/lemonbar | lemonbar -g 1355x20+5+5 -f terminus-9"
PATH=/home/julian/Scripts:$PATH
+PATH=/home/julian/.gem/ruby/2.4.0/bin:$PATH
fortune -n 100 computers | cowsay
rex
@@ -104,7 +105,6 @@ fi
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
-
alias pacman="~/Scripts/pacman"
alias sudo='sudo '
alias python="python3"
diff --git a/Scripts/mayHem.py b/Scripts/mayHem.py
new file mode 100644
index 0000000..6ac90d6
--- /dev/null
+++ b/Scripts/mayHem.py
@@ -0,0 +1,30 @@
+import os
+import tkinter as tk
+import time
+root = tk.Tk()
+root.withdraw()
+
+control_c_sequence = '''keydown Shift_L;
+key Left;
+keyup Shift_L;
+keydown Control_L;
+key x;
+keyup Control_L
+'''
+
+left = 'key Left'
+right = 'key Right'
+
+def keypress(sequence):
+ #print(sequence.replace('\n', ''))
+ for item in sequence.replace('\n', '').split(';'):
+ print("xdotool " + item)
+ os.system("xdotool " + item)
+
+
+keypress(right)
+while(True):
+ keypress(control_c_sequence)
+ keypress("keydown Shift_L key " + root.clipboard_get() + " keyup Shift_L")
+ keypress(right)
+ keypress(right)
diff --git a/Scripts/overleafUp.sh b/Scripts/overleafUp.sh
new file mode 100644
index 0000000..59f4355
--- /dev/null
+++ b/Scripts/overleafUp.sh
@@ -0,0 +1,4 @@
+cd /home/julian/Dokumenter/overleaf/fysikCirkelBevægelse
+
+git pull
+pdflatex main.tex
diff --git a/Scripts/pythonSocket.py b/Scripts/pythonSocket.py
new file mode 100644
index 0000000..06c434b
--- /dev/null
+++ b/Scripts/pythonSocket.py
@@ -0,0 +1,23 @@
+import socket
+sock = socket.socket()
+
+server_addr = ('192.168.43.86', 5001)
+sock.bind(server_addr)
+
+sock.listen(1)
+print("Waiting for connection on " + str(server_addr))
+while True:
+ connection, client_address = sock.accept()
+ try:
+ print ('connection from', client_address)
+
+ # Receive the data in small chunks and retransmit it
+ while True:
+ data = connection.recv(16)
+ print('received ' ,data)
+ if not data:
+ print('no more data from', client_address)
+ break
+ finally:
+ # Clean up the connection
+ connection.close() \ No newline at end of file
diff --git a/Scripts/volume-change.py b/Scripts/volume-change.py
index 64d578a..d279ce6 100755
--- a/Scripts/volume-change.py
+++ b/Scripts/volume-change.py
@@ -8,6 +8,8 @@
#
# Requires: python3 and python-dbus (on Arch) or python3-dbus
# (on Debian) or equivalent
+#
+# Git link: https://github.com/garrett92895/gnome-volume-step-osd
import dbus
import sys
from subprocess import getoutput
diff --git a/Scripts/whileUdDown.sh b/Scripts/whileUdDown.sh
new file mode 100644
index 0000000..2ca8f07
--- /dev/null
+++ b/Scripts/whileUdDown.sh
@@ -0,0 +1,12 @@
+C=1
+RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk)
+echo "$C $RED"
+COM="https://www.uddata.dk/uddataplus-nede/"
+while [ "$RED" == "$COM" ]
+do
+ C=$((C+1))
+ RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk)
+ echo "$C $RED"
+ sleep 30
+done
+notify-send 'Yo!' 'Uddata virker måske igen' --icon=dialog-information