From 3711ac3ea6d2bf70fb30fc5391c87e10c67d062a Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Sun, 9 Dec 2018 03:01:07 +0100 Subject: [PATCH] Add dotfiles from newest setup Signed-off-by: Severin Kaderli --- .bashrc | 5 ++- .config/i3/config | 72 +++++++++++++++++++--------------- .config/polybar/config | 83 +++++++++++++++++++++++++++++++--------- .config/polybar/polybar | 1 - .config/screen_layout.sh | 2 + .config/termite/config | 2 +- bin/increase_volume.sh | 4 ++ bin/screenlock.sh | 4 +- install.sh | 2 + 9 files changed, 120 insertions(+), 55 deletions(-) delete mode 120000 .config/polybar/polybar create mode 100755 .config/screen_layout.sh create mode 100755 bin/increase_volume.sh diff --git a/.bashrc b/.bashrc index 6d242f3..78d7310 100644 --- a/.bashrc +++ b/.bashrc @@ -51,9 +51,10 @@ export XMODIFIERS=@im=ibus export VISUAL=vim export EDITOR="$VISUAL" export TERMINAL=termite - export QT_QPA_PLATFORMTHEME=qt5ct +source /usr/share/git/completion/git-prompt.sh + # Enable autocompletion features if [ -f /etc/bash_completion ]; then /etc/bash_completion @@ -86,4 +87,4 @@ set_bash_prompt() { MSYS2_PS1="$PS1" } -PROMPT_COMMAND=set_bash_prompt \ No newline at end of file +PROMPT_COMMAND=set_bash_prompt diff --git a/.config/i3/config b/.config/i3/config index 6d328b9..9520915 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,7 +11,7 @@ new_window none # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:Roboto, FontAwesome 15px +font pango:Roboto, Font Awesome 5 Free 15px # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -65,14 +65,14 @@ bindsym $mod+a focus parent # Set monitor names set $output1 VGA-1 -set $output2 HDMI-1 +set $output2 eDP-1 # Set workspace titles set $workspace1 "1: " set $workspace2 "2: " set $workspace3 "3: " set $workspace4 "4: " -set $workspace5 "5: Messaging" +set $workspace5 "5: " set $workspace6 "6: " set $workspace7 "7: " set $workspace8 "8: " @@ -145,16 +145,16 @@ bindsym $mod+Shift+r restart # resize window (you can also use the mouse for that) mode "resize" { - # These bindings trigger as soon as you enter the resize mode +# These bindings trigger as soon as you enter the resize mode - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt +bindsym Left resize shrink width 10 px or 10 ppt +bindsym Down resize grow height 10 px or 10 ppt +bindsym Up resize shrink height 10 px or 10 ppt +bindsym Right resize grow width 10 px or 10 ppt - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" +# back to normal: Enter or Escape +bindsym Return mode "default" +bindsym Escape mode "default" } bindsym $mod+x mode "resize" @@ -175,19 +175,24 @@ bindsym $mod+x mode "resize" exec_always --no-startup-id $HOME/.config/polybar/launch.sh -# Custom key bindings -### -# Lock the screen -bindsym $mod+l exec ~/bin/screenlock.sh -bindsym XF86Sleep exec --no-startup-id ~/bin/screenlock.sh +####################################### +# Custom keybinding +####################################### +# Screen lock controls +bindsym $mod+l exec --no-startup-id $HOME/bin/screenlock.sh +bindsym XF86Sleep exec --no-startup-id $HOME/bin/screenlock.sh -# Volume changing -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle -bindsym $mod+m exec --no-startup-id pactl set-sink-mute 0 toggle -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% -bindsym $mod+KP_Add exec --no-startup-id pactl set-sink-volume 0 +5% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% -bindsym $mod+KP_Subtract exec --no-startup-id pactl set-sink-volume 0 -5% +# Volume controls +bindsym XF86AudioMute exec --no-startup-id pamixer -t +bindsym $mod+m exec --no-startup-id pamixer -t +bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/bin/increase_volume.sh +bindsym $mod+KP_Add exec --no-startup-id $HOME/bin/increase_volume.sh +bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 --allow-boost +bindsym $mod+KP_Subtract exec --no-startup-id pamixer -d 5 --allow-boost + +# Brightness controls +bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 +bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 # Music controls bindsym XF86AudioPlay exec --no-startup-id cmus-remote -u @@ -201,8 +206,11 @@ bindsym $mod+Control+Left exec --no-startup-id cmus-remote -r bindsym $mod+$alt+Left move workspace to output left bindsym $mod+$alt+Right move workspace to output right -# Run specific applications on start -### +####################################### +# Startup applications +####################################### +# +exec wicd-client --tray # Merge .Xresources on boot exec xrdb -merge $HOME/.Xresources @@ -211,23 +219,27 @@ exec xrdb -merge $HOME/.Xresources exec --no-startup-id compton # Background-Image -exec_always --no-startup-id feh --bg-fill /home/severin/GoogleDrive/02_Media/01_Images/01_Wallpaper/Adapta_Tealized.jpg +exec_always --no-startup-id feh --bg-fill $HOME/GoogleDrive/02_Media/Images/01_Wallpaper/Desktop/Fearsome_Awakening.png # Monitor settings -exec_always --no-startup-id xrandr --output $output2 --mode 1280x1024 --pos 1280x0 --rotate normal --output $output1 --mode 1280x1024 --pos 0x0 --rotate normal +exec_always --no-startup-id xrandr --output $output2 --mode 1920x1080 --pos 1920x0 --rotate normal --output $output1 --mode 1280x1024 --pos 0x0 --rotate normal # Other applications exec google-chrome-beta exec termite +exec discord +exec nemo +exec keepassxc + #exec termite -e cmus --name cmus # Assign programs to specific workspaces ### assign [class="Google-chrome-beta"] $workspace1 -assign [instance="termite"] $workspace2 assign [instance="cmus"] $workspace10 -assign [class="Hyper"] $workspace2 -assign [class="Atom"] $workspace3 +assign [class="Code"] $workspace3 +assign [class="Nemo"] $workspace4 +assign [class="discord"] $workspace5 assign [class="Steam"] $workspace6 assign [class="keepassxc"] $workspace8 assign [class="Vlc"] $workspace9 diff --git a/.config/polybar/config b/.config/polybar/config index 21a6764..3b00b30 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -15,22 +15,25 @@ foreground = ${colors.foreground} padding-right = 2 module-margin = 2 -font-0 = Roboto:pixelsize=12;2 -font-1 = FontAwesome:size=11;2 -font-2 = siji:pixelsize=10;0 +font-0 = Roboto:pixelsize=12;3 +font-1 = Font Awesome 5 Free:style=Solid::pixelsize=12;3 +font-2 = Font Awesome 5 Brands:pixelsize=12;3 +font-3 = siji:pixelsize=12;3 modules-left = i3 -modules-center = xwindow -modules-right = volume wlan date +modules-center = xwindow +modules-right = battery volume backlight wlan date #wm-restack = i3 scroll-up = i3wm-desknext scroll-down = i3wm-deskprev +tray-position = right + [bar/top2] inherit = bar/top -monitor = HDMI-1 +monitor = eDP-1 [module/i3] @@ -65,7 +68,7 @@ label-urgent-padding = 4 [module/xwindow] type = internal/xwindow -label = %title:0:40:...% +label = %title:0:50:...% label-padding = 4 [module/date] @@ -76,15 +79,49 @@ time = %H:%M:%S label =  %date% %time% format =