Added rust modes to emacs, changed theme to one-theme, changed scripts
This commit is contained in:
@@ -75,10 +75,8 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
|
||||
|
||||
# Open specific applications in floating mode
|
||||
for_window [class="Nitrogen"] floating enable sticky enable border normal
|
||||
for_window [class="(?i)virtualbox"] floating enable border normal
|
||||
for_window [title="KeePassX$"] floating enable border normal
|
||||
for_window [title="Eddie - Settings"] floating enable border normal
|
||||
for_window [class="^Thunderbird$" title="^.*Event:"] floating enable
|
||||
|
||||
# https://github.com/z3ntu/dotfiles/blob/master/i3/.config/i3/config
|
||||
|
||||
@@ -2,12 +2,12 @@ u:/home/tuan/Documents/Uni/Studium/2020&2021 Wintersemseter
|
||||
p:/home/tuan/Documents/Protokolle/FSE
|
||||
o:/home/tuan/.dotfiles/config
|
||||
m:/run/media
|
||||
a:/home/tuan/Documents/Uni/Studium/2020&2021 Wintersemseter/Programmierung in C-C++/Exercise/03/tran_3030462_ex03/task01
|
||||
a:/home/tuan/.nextcloud/Documents/Uni/Studium/2020&2021 Wintersemseter/Programmierung in C-C++/Exercise/11/tran_3030462_ex11/task01
|
||||
l:/home/tuan/Local
|
||||
c:/home/tuan/Documents/CTF
|
||||
t:/home/tuan/Templates
|
||||
w:/home/tuan/workspace_l/Projects
|
||||
k:/home/tuan/Documents/Uni/Studium/2017&2018 Wintersemester/Rechnerstrukturen und Betriebssysteme [4,0]/Rechnerstrukturen
|
||||
q:/home/tuan/.nextcloud/Quick Drop
|
||||
':/home/tuan/f/b
|
||||
':/home/tuan/Pictures/Screenshots/2021-03
|
||||
e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
type xrandr >/dev/null 2>&1 || { echo >&2 "I require maim but it's not installed. Aborting."; exit 1; }
|
||||
|
||||
mon0=eDPI1
|
||||
mon1=HDMI1
|
||||
case $1 in
|
||||
"mon0"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --off
|
||||
;;
|
||||
"duplicate"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --same-as $mon0
|
||||
;;
|
||||
"extend"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --left-of $mon0
|
||||
;;
|
||||
"mon1"*)
|
||||
xrandr --output $mon0 --off
|
||||
xrandr --output $mon1 --auto
|
||||
;;
|
||||
esac
|
||||
@@ -5,24 +5,25 @@ type dunstify >/dev/null 2>&1 || { echo >&2 "I require dunstify but it's not ins
|
||||
type xclip >/dev/null 2>&1 || { echo >&2 "I require xclip but it's not installed. Aborting."; exit 1; }
|
||||
type xdotool >/dev/null 2>&1 || { echo >&2 "I require xdotool but it's not installed. Aborting."; exit 1; }
|
||||
|
||||
d=$HOME/Pictures/Screenshots/$(date +%G-%m);
|
||||
d=$HOME/Pictures/Screenshots/$(date +%Y-%m);
|
||||
fd=$(date +%G-%m-%d_%H-%M-%S)
|
||||
|
||||
case $1 in
|
||||
"screen"*)
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png;
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowfocus getwindowpid)/comm).png;
|
||||
maim -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of screen in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
"window"*)
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowfocus getwindowpid)/comm).png
|
||||
maim -u -i $(xdotool getactivewindow) -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of window in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
"area"*)
|
||||
dunstify -r 2 'Taking screenshot from area.';
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png;
|
||||
# dunstify -r 2 'Taking screenshot from area.';
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowfocus getwindowpid)/comm).png;
|
||||
maim -u -s -f png $d/$filename;
|
||||
dunstify -r 2 "Saved in $d/$filename.";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
|
||||
@@ -25,13 +25,13 @@ function kb_routine {
|
||||
function battery_routine {
|
||||
capacity=$(< /sys/class/power_supply/BAT0/capacity)
|
||||
if [[ $capacity -lt lower_battery_threshold ]]; then
|
||||
acpi | grep -q 'Discharging' && dunstify "$capacity";
|
||||
acpi | grep -q '0: Discharging' && dunstify "Battery at $capacity%";
|
||||
fi
|
||||
}
|
||||
|
||||
while :
|
||||
do
|
||||
kb_routine
|
||||
# kb_routine
|
||||
battery_routine
|
||||
sleep 1;
|
||||
done
|
||||
|
||||
@@ -99,7 +99,7 @@ Host plex
|
||||
User root
|
||||
IdentityFile /mnt/veracrypt1/proxmox
|
||||
|
||||
Host plex-00
|
||||
Host sshfs
|
||||
HostName 10.1.11.107
|
||||
Port 22
|
||||
User root
|
||||
|
||||
Reference in New Issue
Block a user