diff --git a/i3/config b/i3/config index 2067262..e1e8556 100644 --- a/i3/config +++ b/i3/config @@ -34,17 +34,16 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- betterlockscreen --lock b # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet # Start polybar -exec sh ~/.config/polybar/startup.sh +exec --no-startup-id sh ~/.config/polybar/startup.sh # Start nitrogen for wallpaper support -exec always nitrogen --restore +exec --no-startup-id nitrogen --restore # Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +# set $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id sh ~/.config/polybar/sound.sh up +bindsym XF86AudioLowerVolume exec --no-startup-id sh ~/.config/polybar/sound.sh down +bindsym XF86AudioMute exec --no-startup-id sh ~/.config/polybar/sound.sh mute # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -60,7 +59,7 @@ bindsym $mod+t exec alacritty bindsym $mod+q kill # start dmenu (a program launcher) -bindsym $mod+space exec --no-startup-id rofi -show drun +bindsym $mod+space exec --no-startup-id rofi -show drun -icon-theme -show-icons # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -190,16 +189,20 @@ bindsym $mod+r mode "resize" # -------- # # Automatically turn off laptop monitor when the lid is closed -exec --no-startup-id xrandr --output eDP-1 --off --auto +#exec --no-startup-id xrandr --output eDP-1 --off --auto exec --no-startup-id xset -dpms exec --no-startup-id xset s off # Automatically turn on laptop monitor when the lid is opened -exec --no-startup-id xrandr --output eDP-1 --auto +#exec --no-startup-id xrandr --output eDP-1 --auto # Lockscreen exec --no-startup-id betterlockscreen -w blur bindsym $mod+L exec betterlockscreen --lock blur + +# Power options + + # # -------- # Rice config @@ -214,6 +217,6 @@ gaps bottom 15 # remove top border for_window [class="^.*"] border pixel 2 -client.focused #73daca90 #73daca90 #fdf6e3 #cb4b16 -client.focused_inactive #73daca60 #73daca60 #fdf6e3 #073642 -client.unfocused #73daca60 #73daca60 #fdf6e3 #073642 \ No newline at end of file +client.focused #bb9af790 #bb9af790 #fdf6e3 #cb4b16 +client.focused_inactive #bb9af790 #bb9af790 #fdf6e3 #073642 +client.unfocused #24283b #24283b #fdf6e3 #073642 diff --git a/picom/picom.conf b/picom/picom.conf new file mode 100644 index 0000000..b6eab22 --- /dev/null +++ b/picom/picom.conf @@ -0,0 +1,8 @@ +enable = true; +vsync = true; +inactive-opacity = 0.65; +active-opacity = 0.98; +corner-radius = 3; +opacity-rule = [ + "100:class_g = 'Rofi'" +]; diff --git a/polybar/bluetooth.sh b/polybar/bluetooth.sh new file mode 100644 index 0000000..fa2170e --- /dev/null +++ b/polybar/bluetooth.sh @@ -0,0 +1,11 @@ +#!/bin/sh +if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ] +then + echo "󰂲" +else + if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ] + then + echo "󰥰" + fi + echo "" +fi \ No newline at end of file diff --git a/polybar/bluetooth_toogle.sh b/polybar/bluetooth_toogle.sh new file mode 100644 index 0000000..c8f4e35 --- /dev/null +++ b/polybar/bluetooth_toogle.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ] +then + bluetoothctl power on +else + bluetoothctl power off +fi \ No newline at end of file diff --git a/polybar/config.ini b/polybar/config.ini index d567f63..b50379e 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -17,20 +17,19 @@ ;========================================================== [colors] -background = #282A2E -background-alt = #373B41 -foreground = #C5C8C6 -primary = #F0C674 -secondary = #8ABEB7 -alert = #A54242 -disabled = #707880 +background = #24283b +background-alt = #292e42 +foreground = #c0caf5 +primary = #bb9af7 +secondary = #ff007c +alert = #db4b4b +disabled = #565f89 [bar/example] monitor=${env:MONITOR:} width = 100% height = 24pt radius = 6 - ; dpi = 96 background = ${colors.background} @@ -41,18 +40,18 @@ line-size = 3pt border-size = 4pt border-color = #00000000 -padding-left = 0 -padding-right = 1 - +padding-left = 2 +padding-right = 2 module-margin = 1 -separator = | +separator = • separator-foreground = ${colors.disabled} -font-0 = monospace;2 - -modules-left = xworkspaces xwindow -modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date +font-0 = JetbrainsMonoNerdFont;2 +fixed-center = true +modules-left = power-button xworkspaces xwindow +modules-center = date time +modules-right = pulseaudio-devices wlan eth bluetooth memory cpu battery weather cursor-click = pointer cursor-scroll = ns-resize @@ -94,16 +93,6 @@ label-empty-padding = 1 type = internal/xwindow label = %title:0:60:...% -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / - -label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%% - -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.disabled} [module/pulseaudio] type = internal/pulseaudio @@ -117,29 +106,38 @@ label-volume = %percentage%% label-muted = muted label-muted-foreground = ${colors.disabled} -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock -label-layout = %layout% -label-layout-foreground = ${colors.primary} +[module/date-time] +type = internal/date +interval = 43200 +label-foreground = ${colors.primary} +label = %date% -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-foreground = ${colors.background} -label-indicator-background = ${colors.secondary} +[module/date] +inherit = module/date-time +interval = 30 +date = %a %d + + + +[module/time] +inherit = module/date-time +interval = 1 +date = %H:%M [module/memory] type = internal/memory interval = 2 -format-prefix = "RAM " +format = "%{A1:alacritty -e 'glances':}