diff --git a/.config/dconf/user b/.config/dconf/user index 93285be..51cb8f2 100644 Binary files a/.config/dconf/user and b/.config/dconf/user differ diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 6cc6eb0..2e60743 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -381,7 +381,8 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn-sh "alacritty msg create-window"; } Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } - Mod+B hotkey-overlay-title="Open a Browser: qutebrowser" { spawn "qutebrowser"; } + Mod+B hotkey-overlay-title="Search the Web: fuzzel" { spawn "browserprompt.fish"; } + Mod+E hotkey-overlay-title="Open Email Client: evolution" { spawn "evolution"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } Mod+P hotkey-overlay-title="Show the Power menu: fuzzel" { spawn "powermenu.fish"; } Mod+A hotkey-overlay-title="Show the Action menu: fuzzel" { spawn "actionmenu.fish"; } diff --git a/.config/qutebrowser/egg b/.config/qutebrowser/egg deleted file mode 100644 index ca2b04c..0000000 --- a/.config/qutebrowser/egg +++ /dev/null @@ -1,12 +0,0 @@ -config.source("gruvbox.py") - -#c.tabs.show = "multiple" -c.tabs.padding = {'top': 0, 'bottom': 0, 'left': 8, 'right': 8} -c.tabs.indicator.width = 0 # no tab indicators -c.tabs.width = '7%' - -c.fonts.default_size = '14px' - - -c.content.blocking.enabled = True -config.load_autoconfig(False) diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 23b5482..a320936 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -7,7 +7,7 @@ tooltip { font-weight: normal; - background: rgba(0, 0, 0, 229); + background: rgba(0.1, 0.1, 0.1, 0.9); border: solid 2px #505050; border-radius: 0px; } diff --git a/.local/scripts/actionmenu.fish b/.local/scripts/actionmenu.fish index cbf08b8..46672f0 100755 --- a/.local/scripts/actionmenu.fish +++ b/.local/scripts/actionmenu.fish @@ -28,6 +28,22 @@ function open_location end end +function open_course + set options "Algorithmen und Datenstrukturen" "Modellbildung und Simulation" "Amateurfunkkurs" "Datenbanken" + set input (menu $options) + + switch $input + case $options[1] + xdg-open "https://wuecampus.uni-wuerzburg.de/moodle/course/view.php?id=75979" + case $options[2] + xdg-open "https://wuecampus.uni-wuerzburg.de/moodle/course/view.php?id=76309" + case $options[3] + xdg-open "https://wuecampus.uni-wuerzburg.de/moodle/course/view.php?id=76586" + case $options[4] + xdg-open "https://wuecampus.uni-wuerzburg.de/moodle/course/view.php?id=76199" + end +end + function audio_source set dump (string trim -c '"' (pw-dump | jq '.[] | select(.info.props."media.class" == "Audio/Source")' | jq '.id, .info.props."node.description"')) @@ -68,7 +84,6 @@ end function network_connection set options (nmcli --terse --mode multiline connection show | grep "NAME:" | string replace "NAME:" "" | string split "\n") - set input (menu $options) notify-send "Connect to network $input" (nmcli connection up $input) @@ -93,7 +108,7 @@ function bluetooth_connection notify-send "Connect to bluetooth device $names[$input]" (bluetoothctl connect $ids[$input] | string collect) end -set options "󱂵 Open Location" "󰍬 Select Audio Source" "󰕾 Select Audio Sink" "󰂯 Select Bluetooth" "󰛳 Select Network" +set options "󱂵 Open Location" "󰑴 Open WueCampus Course" "󰍬 Select Audio Source" "󰕾 Select Audio Sink" "󰂯 Select Bluetooth" "󰛳 Select Network" set input (menu $options) switch $input @@ -101,14 +116,17 @@ switch $input open_location case $options[2] - audio_source + open_course case $options[3] + audio_source + + case $options[4] audio_sink - case $options[4] + case $options[5] bluetooth_connection - case $options[5] + case $options[6] network_connection end diff --git a/.local/scripts/browserprompt.fish b/.local/scripts/browserprompt.fish new file mode 100755 index 0000000..95aa303 --- /dev/null +++ b/.local/scripts/browserprompt.fish @@ -0,0 +1,14 @@ +#!/usr/bin/env fish + +set default "https://duckduckgo.com/?q=" +set wiki "https://en.wikipedia.org/?search=" + +set input (prompt) +set split_input (string split -m 1 ":" $input) + +switch $split_input[1] + case "w" + xdg-open "$wiki$split_input[2]" + case "*" + xdg-open "$default$input" +end