From 319d5e31ecaee138833583291c550794abe7e20c Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 12 Jan 2023 10:16:47 -0800 Subject: i3 --- dot_config/i3/config | 82 +++++------------------------- dot_config/i3/scripts/executable_powermenu | 6 ++- 2 files changed, 16 insertions(+), 72 deletions(-) (limited to 'dot_config') diff --git a/dot_config/i3/config b/dot_config/i3/config index cbed1b0..ef0c15b 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -283,16 +283,21 @@ bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 "1:" -set $ws2 "2:" -set $ws3 "3:" -set $ws4 "4:" -set $ws5 "5:" +#set $ws1 "1:" +#set $ws2 "2:" +#set $ws3 "3:" +#set $ws4 "4:" +#set $ws5 "5:" + +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" -set $ws10 "10" # bind program to workspace and focus to them on startup: #assign [class="Xfce4-terminal"] $ws1 @@ -393,7 +398,7 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc #exec_always --no-startup-id autotiling # Autostart apps as you like -exec --no-startup-id sleep 5 && thunderbird +#exec --no-startup-id sleep 5 && thunderbird ################## # floating rules # @@ -484,69 +489,6 @@ bar { } } - -bar { - font pango: Noto Sans Regular 11 - status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - i3bar_command i3bar - output DP-3 - tray_output primary - tray_padding 0 - strip_workspace_numbers no - - colors { - separator $purple - background $darkgrey - statusline $white - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } -} - -bar { - font pango: Noto Sans Regular 11 - status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - i3bar_command i3bar - output DP-4 - tray_output primary - tray_padding 0 - strip_workspace_numbers no - - colors { - separator $purple - background $darkgrey - statusline $white - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } -} - -bar { - font pango: Noto Sans Regular 11 - status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - i3bar_command i3bar - output DP-1 - tray_output primary - tray_padding 0 - strip_workspace_numbers no - - colors { - separator $purple - background $darkgrey - statusline $white - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } -} # you can add different bars for multidisplay setups on each display: # set output HDMI-0 to the display you want the bar, --transparency can be set. # Transparency needs rgba color codes to be used where the last two letters are the transparency factor see here: diff --git a/dot_config/i3/scripts/executable_powermenu b/dot_config/i3/scripts/executable_powermenu index e72f0a2..989ab2c 100644 --- a/dot_config/i3/scripts/executable_powermenu +++ b/dot_config/i3/scripts/executable_powermenu @@ -172,7 +172,8 @@ function ask_confirmation() { fi if [ "${confirmed}" == 0 ]; then - i3-msg -q "exec ${menu[${selection}]}" + exec ${menu[${selection}]} + #i3-msg -q "exec ${menu[${selection}]}" fi } @@ -181,6 +182,7 @@ if [[ $? -eq 0 && ! -z ${selection} ]]; then ${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then ask_confirmation else - i3-msg -q "exec ${menu[${selection}]}" + #i3-msg -q "exec ${menu[${selection}]}" + exec ${menu[${selection}]} fi fi -- cgit v1.2.3