From 543ce3ed5725c9bd7135a58a4c546085e452175d Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Thu, 29 Dec 2022 17:41:16 +0530 Subject: [PATCH] [cleanup] trim to use sample i3 config --- i3/config | 44 +++++++++++++++++++++++--------------------- setup.sh | 25 ++++++++++++++----------- 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/i3/config b/i3/config index f682f4d..65ac681 100644 --- a/i3/config +++ b/i3/config @@ -19,6 +19,10 @@ font pango:monospace 8 # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex-autostart --autostart --environment i3 + # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. @@ -39,25 +43,24 @@ bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPause exec playerctl play-pause # Volume Controls -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5%+ && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5%- && $refresh_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 # Muting 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 # Add power and bluetooth -exec --no-startup-id blueman-applet -exec --no-startup-id xfce4-power-manager +# exec --no-startup-id blueman-applet +# exec --no-startup-id xfce4-power-manager # Auth agent for gui applications asking for permissions -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +# exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal -bindsym $mod+Return exec --no-startup-id alacritty +bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+Return exec --no-startup-id thunar # kill focused window @@ -123,7 +126,6 @@ bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child - # 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" @@ -149,10 +151,6 @@ bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 - -# Assign VSCode to WS 2 (My usage) -assign [class="^Code$"] 2 - # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 @@ -199,36 +197,40 @@ mode "resize" { bindsym $mod+r mode "resize" +## See customizations below +# # class border bground text indicator child_border +# client.focused #83CAFA #51A2DA #FFFFFF #83CAFA #51A2DA +# client.focused_inactive #8C8C8C #4C4C4C #FFFFFF #4C4C4C #8C8C8C +# client.unfocused #4C4C4C #222222 #888888 #292D2E #222222 +# client.urgent #EC69A0 #DB3279 #FFFFFF #DB3279 #DB3279 +# client.placeholder #000000 #0C0C0C #FFFFFF #000000 #0C0C0C + +# client.background #FFFFFF + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status #mode toggle #hidden_state hide #modifier $mod+s - #font pango: Open Sans 8 - #font pango: Monospace Regular 8 colors{ background $al focused_workspace $bg $al $fg binding_mode $bg $al $fg } + status_command i3status } -#exec_always --no-startup-id $HOME/.config/polybar/launch.sh # Set the wallpaper # exec --no-startup-id feh --bg-scale ~/Pictures/wallpapers/e3wa3q14yxb61.jpg # Start thunar in daemon mode for fast startups exec --no-startup-id thunar --daemon -# picom -exec_always --no-startup-id picom --config ~/.config/picom/picom.conf - # Section for pywal -exec_always --no-startup-id wal -R +#exec_always --no-startup-id wal -R # Set colors from Xresources # Change 'color7' and 'color2' to whatever colors you want i3 to use @@ -249,7 +251,7 @@ client.placeholder $bg $bg $fg $bg $bg client.background $bg # gaps outer 4 -for_window [class=".*"] border pixel 0 +# for_window [class=".*"] border pixel 0 for_window [class="Blueman-manager"] floating enable, border normal for_window [class="Pavucontrol"] floating enable, border normal diff --git a/setup.sh b/setup.sh index 33639e2..67d56bf 100755 --- a/setup.sh +++ b/setup.sh @@ -3,25 +3,28 @@ test ! -d ~/.config/i3 && ln -s "$(pwd)/i3" ~/.config/i3 # i3status test ! -d ~/.config/i3status && ln -s "$(pwd)/i3status" ~/.config/i3status -# picom -test ! -d ~/.config/picom && ln -s "$(pwd)/picom" ~/.config/picom -# rofi -test ! -f ~/.config/wallpaper/wallpaper.jpg && echo "Download to ~/.config/wallpaper/wallpaper.jpg: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/" -# dunst -test ! -d ~/.config/dunst && ln -s "$(pwd)/dunst" ~/.config/dunst -test ! -d ~/.config/alacritty && ln -s "$(pwd)/alacritty" ~/.config/alacritty +## May not need this anymore +# picom +#test ! -d ~/.config/picom && ln -s "$(pwd)/picom" ~/.config/picom +# rofi +#test ! -f ~/.config/wallpaper/wallpaper.jpg && echo "Download to ~/.config/wallpaper/wallpaper.jpg: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/" +# dunst +#test ! -d ~/.config/dunst && ln -s "$(pwd)/dunst" ~/.config/dunst + +#test ! -d ~/.config/alacritty && ln -s "$(pwd)/alacritty" ~/.config/alacritty # wallpaper -mkdir -p ~/.config/wallpaper/ -test -f ~/.config/wallpaper/wallpaper.jpg && echo "I>Wallpaper exists, setting up" -test ! -f ~/.config/wallpaper/wallpaper.jpg && echo "Download to ~/.config/wallpaper/wallpaper.jpg: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/" +# mkdir -p ~/.config/wallpaper/ +# test -f ~/.config/wallpaper/wallpaper.jpg && echo "I>Wallpaper exists, setting up" +# test ! -f ~/.config/wallpaper/wallpaper.jpg && echo "Download to ~/.config/wallpaper/wallpaper.jpg: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/" # colorscheme generator -wal -i ~/.config/wallpaper/wallpaper.jpg +# wal -i ~/.config/wallpaper/wallpaper.jpg # dont use wpg # test ! -f ~/.config/wallpaper/wallpaper.jpg && wpg -a ~/.config/wallpaper/wallpaper.jpg && wpg -i wallpaper.jpg ./wpg.json && wpg -s wallpaper.jpg +echo "Done" \ No newline at end of file