Marius Schwarz 3 years ago
parent
commit
95b97aa229
3 changed files with 32 additions and 51 deletions
  1. 27 49
      .config/i3/config
  2. 1 1
      .config/rofi/config.rasi
  3. 4 1
      .scripts/i3/lock.sh

+ 27 - 49
.config/i3/config

@@ -20,16 +20,13 @@
 set $mod Mod1
 set $win Mod4
 
-set $gaps 5
+set $gaps 10
 
 # Terminal
-# set $terminal "st -e /usr/bin/zsh"
 set $terminal "alacritty --command /usr/bin/zsh"
-#set $terminal "i3-sensible-terminal --command /usr/bin/zsh"
-# set $terminal "/home/msc/.scripts/tools/term-open-same-dir.sh"
 
 # File Browser
-set $file_browser "st -n vifm -e /bin/bash -ic vifm"
+set $file_browser "alacritty --class vifm --command /usr/bin/zsh -ic vifm"
 
 # Font (window title, bar)
 #font pango:scientifica 12
@@ -43,13 +40,11 @@ gaps inner 5
 gaps outer 5
 
 # Border width (in px)
-new_window pixel 1
-
+new_window pixel 2
 
 # -----[ Colors ]----- #
 
-# load color configuration from Xresource file
-# colors can be changed with .scripts/tools/colorchanger, based on all base16 colors
+# load color configuration from Xresource file (pywal)
 
 set_from_resource $foreground foreground #292d3e
 set_from_resource $background background #292d3e
@@ -95,10 +90,9 @@ bindsym XF86AudioNext exec --no-startup-id $HOME/.scripts/tools/spotify-ctrl Nex
 
 # Screenshot script
 bindsym Print --release exec --no-startup-id flameshot gui
-#$HOME/.scripts/tools/mkscreenshot.sh
 
 # this spawns in scratchpad mode!
-set $dropdownterm "st -n ddpython -e /bin/bash -ic python2"
+set $dropdownterm "alacritty --class ddpython -e /bin/bash -ic python2"
 bindsym $mod+p exec $dropdownterm
 
 # set $dropdownnotes "st -n ddnotes -e /bin/bash -ic 'vim $HOME/projects/internal/notes/todo.md'"
@@ -108,12 +102,8 @@ bindsym $mod+n exec $dropdownnotes
 # unicode emoji finder
 bindsym $mod+u exec $HOME/.scripts/i3/unicode.sh
 
-# watching (yt-) vids with mpv
-bindsym $mod+y exec $HOME/.scripts/misc/music-playlist.sh
-
 # Locking the screen
-#bindsym $win+l exec $HOME/.scripts/i3/lock.sh
-bindsym $win+l exec i3lock
+bindsym $win+l exec $HOME/.scripts/i3/lock.sh
 
 # Cheatsheet chose
 bindsym $mod+i exec $HOME/documents/bin/cheat.sh -i
@@ -135,13 +125,11 @@ bindsym $mod+t move scratchpad
 bindsym $mod+s scratchpad show
 
 # Program launcher and Window switcher
-#bindsym $mod+d exec bash -c "rofi -show run -theme $HOME/.scripts/colors/rofi/default"
-bindsym $mod+d exec bash -c "rofi -show run"
-#bindsym $mod+d exec dmenu_run
-bindsym $mod+Tab exec rofi -show window -theme $HOME/.scripts/colors/rofi/default
+bindsym $mod+d exec /usr/bin/zsh -c "rofi -show run"
+bindsym $mod+Tab exec rofi -show window
 
 # Use win+e as filemanager shortcut (using ranger)
-#bindsym $win+e exec $file_browser
+bindsym $mod+o exec $file_browser
 
 # change focus (vim bindings)
 bindsym $mod+h focus left
@@ -275,13 +263,13 @@ bindsym $mod+Shift+0 move container to workspace 10
 # Start i3bar to display a workspace bar (plus the system information from i3status)
 bar {
         # default status string
-        i3bar_command i3bar
+        #i3bar_command i3bar
         #status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
         status_command i3status
-        #font pango:mono 10
+        font pango:NotoSansMono Nerd Font 8
         modifier None
 	position top
-        #tray_output primary
+        tray_output primary
         strip_workspace_numbers yes
 
         # Base16 colors
@@ -291,19 +279,19 @@ bar {
                 statusline $base04
 
                 # State             Border  BG      Text
-                focused_workspace   $base05 $base0D $base00
-                active_workspace    $base05 $base03 $base00
-                inactive_workspace  $base03 $base01 $base05
-                urgent_workspace    $base08 $base08 $base00
-                binding_mode        $base00 $base0A $base00
+               focused_workspace   $base05 $base0D $base00
+               active_workspace    $base05 $base03 $base00
+               inactive_workspace  $base03 $base01 $base05
+               urgent_workspace    $base08 $base08 $base00
+               binding_mode        $base00 $base0A $base00
             }
     }
 
     # Colors of the Windows - using base16
     # Property Name         Border  BG      Text    Indicator   Child Border
-    client.focused          $base05 $base0D $base00 $base0D     $base01
-    client.focused_inactive $base01 $base01 $base05 $base03     $base0D
-    client.unfocused        $base01 $base00 $base05 $base01     $base0D
+    client.focused          $base05 $base0D $base00 $base0D     $base0D
+    client.focused_inactive $base01 $base01 $base05 $base03     $base01
+    client.unfocused        $base01 $base00 $base05 $base01     $base01
     client.urgent           $base08 $base08 $base00 $base08     $base08
     client.placeholder      $base00 $base00 $base05 $base00     $base00
     client.background       $base07
@@ -327,6 +315,11 @@ for_window [class="mpv"]        resize set 650 370
 for_window [class="mpv"]        border pixel 3
 for_window [class="mpv"]        floating enable
 
+
+for_window [instance="vifm"]        resize set 1000 400
+for_window [instance="vifm"]        border pixel 3
+for_window [instance="vifm"]        floating enable
+
 # Same procedure for dropdown notes
 for_window [instance="ddnotes"]        resize set 1100 700
 for_window [instance="ddnotes"]        move scratchpad
@@ -351,32 +344,17 @@ for_window [title="Microsoft Teams Notification"] resize set 400 150
 for_window [title="Microsoft Teams Notification"] move position 1600px 20px
 no_focus [title="Microsoft Teams Notification"]
 
-
-# screengrab floating
-#for_window [class="screengrab"]        floating enable
-
 # move them to seperate workspaces
 assign [instance="telegram"]            9
 assign [instance="spotify"]             8
 
-# Don't treat Plasma pop-ups as full-sized windows
-for_window [class="plasmashell"] floating enable
-
-# Don't spawn an empty window for the Plasma Desktop
-# for_window [title="Desktop — Plasma"] kill, floating enable, border none
-
-# Don’t let notifications and non-interactive pop-up windows steal focus
-#no_focus [class="plasmashell" window_type="notification"]
-#no_focus [class="plasmashell" window_type="on_screen_display"]
-
 
 # -----[ Runtime ]----- #
 
-#exec         --no-startup-id redshift-gtk                                                               # no bluelight
 exec         --no-startup-id nm-applet                                                                  # network manager applet
-exec         --no-startup-id volumeicon                                                                 # i need music! ~ applet for audio
+exec         --no-startup-id volumeicon                                                                 # applet for audio
 exec         --no-startup-id xfce4-power-manager                                                        # display power settings
-exec_always  --no-startup-id wal -R
+exec_always  --no-startup-id wal -R                                                                     # use wal colorschemes
 exec_always  --no-startup-id setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl         # us-international kb layout
 exec_always  --no-startup-id autorandr -c --force
 exec_always  --no-startup-id flameshot

+ 1 - 1
.config/rofi/config.rasi

@@ -3,7 +3,7 @@ configuration {
 /*	width: 50;*/
 	lines: 20;
 	columns: 1;
-	font: "mono 8";
+	font: "mono 10";
 /*	bw: 1;*/
 /*	location: 0;*/
 /*	padding: 5;*/

+ 4 - 1
.scripts/i3/lock.sh

@@ -1,2 +1,5 @@
 #!/bin/bash
-betterlockscreen -l dim
+path=$HOME/.cache/wal/schemes/
+screen=`cat $path$(ls -t $path| head -n 1) | jq  -r '.wallpaper'`
+echo $screen
+i3lock -i $screen