Explorar o código

[i3] Update themes and backlight

Colin Powell %!s(int64=3) %!d(string=hai) anos
pai
achega
add53a1901
Modificáronse 4 ficheiros con 32 adicións e 22 borrados
  1. 12 0
      bin/.bin/fade
  2. 17 17
      i3/.config/i3/config
  3. 2 4
      rofi/.config/rofi/config.rasi
  4. 1 1
      rofi/.config/rofi/web-search.sh

+ 12 - 0
bin/.bin/fade

@@ -0,0 +1,12 @@
+#!/bin/sh
+count=200
+for i in $(seq $count); do
+    case $1 in
+    'up')
+        brightnessctl s +4
+    ;;
+    'down')
+        brightnessctl s 4-
+    ;;
+    esac
+done

+ 17 - 17
i3/.config/i3/config

@@ -4,7 +4,7 @@
 
 set $mod Mod4
 
-font pango:Go Mono 10
+font pango:Ubuntu Condensed 9
 
 # APP VARIABLES
 set $qute         qutebrowser --target window
@@ -258,14 +258,14 @@ set $casts ~/videos/casts
 #bindsym $mod+Shift+F11 exec ffplay -loop 0 $(last $casts)
 
 # Sreen brightness controls
-#bindsym $mod+F5 exec intel_backlight decr
-#bindsym $mod+F6 exec intel_backlight incr
+bindsym F5 exec ~/.bin/fade down
+bindsym F6 exec ~/.bin/fade up
 
 bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness
 bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness
 bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness
-bindsym F5 exec ~/.config/i3/bright.sh -d # decrease screen brightness
-bindsym F6 exec ~/.config/i3/bright.sh -u # increase screen brightness
+#bindsym F5 exec ~/.config/i3/bright.sh -d # decrease screen brightness
+#bindsym F6 exec ~/.config/i3/bright.sh -u # increase screen brightness
 
 # ROFI
 bindsym $mod+space   exec rofi -show combi -display-window "W"
@@ -294,7 +294,7 @@ bindsym $mod+Shift+y exec xfreerdp /u:powellc /p:mainroot /v:telesto.local /w:12
 bindsym $mod+Ctrl+y exec pkill xfreerdp
 
 bindsym Print exec --no-startup-id flameshot gui
-bindsym $mod+F6 exec --no-startup-id $qute https://15five.slack.com
+bindsym $mod+F6 exec --no-startup-id $surf https://15five.slack.com
 
 bindsym F7 exec --no-startup-id $qute https://15five-dev.atlassian.net/secure/Dashboard.jspa
 bindsym $mod+F7 exec --no-startup-id $qute https://app.datadoghq.com/logs
@@ -324,15 +324,15 @@ bindsym $mod+Ctrl+e exec pkill emacs
 
 # STARTUP
 exec --no-startup-id unclutter -grab
-#exec --no-startup-id "i3-msg 'workspace 1; append_layout /home/powellc/.i3/workspace-1.json'"
-exec --no-startup-id "i3-msg 'workspace 3; append_layout /home/powellc/.i3/workspace-3.json'"
-exec_always --no-startup-id copyq
+exec --no-startup-id nm-applet
+exec --no-startup-id copyq
 
 # RELOAD
-#exec_always --no-startup-id picom --config ~/.config/compton/compton.conf
-exec_always --no-startup-id dunst
-exec_always --no-startup-id syncthing -no-qute
-exec_always xrdb --merge ~/.Xresoureces
+exec_always --no-startup-id picom --config ~/.config/compton/compton.conf
+exec --no-startup-id dunst
+exec --no-startup-id syncthing -no-qute
+exec xrdb --merge ~/.Xresoureces
+
 
 # Set wallpaper and keyboard mappings
 exec_always --no-startup-id changepaper
@@ -340,10 +340,10 @@ exec_always setxkbmap -model pc105 -layout us,ru -option grp:ctrls_toggle -optio
 
 ## Volume control
 # Pulse Audio controls
-bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up
-bindsym XF86AudioLowerVolume exec pulseaudio-ctl down
-bindsym XF86AudioMute exec pulseaudio-ctl mute
-bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input
+bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+
+bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-
+bindsym XF86AudioMute exec amixer -D pulse sset Master toggle
+bindsym XF86AudioMicMute exec amixer -D pulse sset Capture toggle
 bindsym F1 exec pulseaudio-ctl mute
 bindsym F2 exec pulseaudio-ctl down
 bindsym F3 exec pulseaudio-ctl up

+ 2 - 4
rofi/.config/rofi/config.rasi

@@ -1,10 +1,8 @@
 configuration {
 	modi: "window,run,ssh,combi";
-	width: 50;
-	lines: 7;
 	terminal: "alacritty";
-	font: "Go Mono 10";
+	font: "Ubuntu Condensed 10";
 	show-icons: true;
 	combi-modi: "window,drun,ssh";
 }
-@import "/usr/share/rofi/themes/gruvbox-dark-hard.rasi"
+@import "/usr/share/rofi/themes/Monokai.rasi"

+ 1 - 1
rofi/.config/rofi/web-search.sh

@@ -22,7 +22,7 @@ declare -A URLS
 # https://b-ok.cc/s/?q="
 #
 URLS=(
-	["books"]="http://1lib.us/s/"
+	["books"]="https://b-ok.cc/s/"
 	["amazon"]="https://www.amazon.com/s?k="
 	["stackoverflow"]="http://stackoverflow.com/search?q="
 	["hoogle"]="https://www.google.com/search?q="