From 3914b7ff3605c00e91013c3fa5dac8e0957d82af Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Mon, 5 Mar 2018 06:32:10 -0500 Subject: [PATCH] Resolves #36 Also added Spotify song name as i3block to Samsung monitor. --- configs/NZXT/i3.conf | 18 +++++++++++++----- configs/NZXT/i3blocks.conf | 8 ++++---- configs/NZXT/sam-i3blocks.conf | 16 ++++++++++++++++ configs/set-configs.sh | 3 ++- 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 configs/NZXT/sam-i3blocks.conf diff --git a/configs/NZXT/i3.conf b/configs/NZXT/i3.conf index 95d58a7..488bdfb 100644 --- a/configs/NZXT/i3.conf +++ b/configs/NZXT/i3.conf @@ -117,6 +117,7 @@ bindsym $mod+F2 workspace $ws2; exec terminator set $ws3 "3 " workspace $ws3 output $benq +bindsym $mod+F3 workspace $ws3; exec google-chrome set $ws4 "4 " workspace $ws4 output $samsung @@ -186,11 +187,6 @@ bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10 bindsym $mod+control+Shift+1 move container to workspace $ws11 # }}} move container to ws # - -# gaps {{{ # -# gaps inner 10 -# gaps outer 20 -# }}} gaps # # }}} workspace # # reload config/computer {{{ # @@ -210,6 +206,16 @@ bindsym $mod+control+j resize shrink height 10 px or 10 ppt bindsym $mod+control+l resize shrink width 10 px or 10 ppt # }}} resizing windows # +# gaps {{{ # +for_window [class="^.*"] border pixel 0 +smart_gaps on +gaps inner 10 +gaps outer 15 + +bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5 +bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5 +# }}} gaps # + # status bar {{{ # # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) @@ -223,8 +229,10 @@ bar { bar { output $samsung + status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf tray_output none font pango:$sb_font 22 + # font pango:monospace 22, FontAwesome 22 } # }}} status bar # diff --git a/configs/NZXT/i3blocks.conf b/configs/NZXT/i3blocks.conf index df0c146..6c1dce4 100644 --- a/configs/NZXT/i3blocks.conf +++ b/configs/NZXT/i3blocks.conf @@ -52,10 +52,10 @@ label= min_width=CPU: 100.00% color=#adeaea -[wifi] -label=🖧 -instance=wlp4s0 -interval=10 +# [wifi] +# label= +# instance=wlp4s0 +# interval=10 [name] color=#cc5490 diff --git a/configs/NZXT/sam-i3blocks.conf b/configs/NZXT/sam-i3blocks.conf new file mode 100644 index 0000000..6ce2835 --- /dev/null +++ b/configs/NZXT/sam-i3blocks.conf @@ -0,0 +1,16 @@ +# Global properties {{{ # +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +align=center +command=/usr/share/i3blocks/$BLOCK_NAME +separator=true +separator_block_width=25 +markup=pango +# }}} Global properties # + +[spotify] +command=python /usr/share/i3blocks/spotify.py +label= +# label= +color=#009900 +interval=10 diff --git a/configs/set-configs.sh b/configs/set-configs.sh index bf707c8..aae4819 100755 --- a/configs/set-configs.sh +++ b/configs/set-configs.sh @@ -1,7 +1,8 @@ # Get directory variables from script. . ../dirs.sh # List of config files in system config dir that I want to link to. -config_files="neofetch/config.conf i3/config i3blocks/i3blocks.conf" +config_files="neofetch/config.conf i3/config i3blocks/i3blocks.conf "\ +"sam-i3blocks/sam-i3blocks.conf" for file in $config_files; do # Remove system file. rm "$sys_config_dir"/"$file"