1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | #
# Default options
#
set :increase_step, 1
set :border_snap, 10
set :default_gravity, :ct
set :urgent_dialogs, true
set :honor_size_hints, false
set :gravity_tiling, true
set :click_to_focus, false
set :skip_pointer_warp, false
set :skip_urgent_warp, false
#
# Screen & bar, we use polybar
#
screen 1 do
top [ ]
bottom [ ]
end
#screen 2 do
# top [ ]
# bottom [ ]
#end
#
# Styles
#
style :all do
padding 0
margin 0
font "-*-*-*-*-*-*-14-*-*-*-*-*-*-*"
end
style :clients do
padding 0
margin_left 2
margin_top 2
margin_right 1
end
#
# Gravities
#
# Left - Right
gravity :l_side, [ 0, 4, 50, 96 ]
gravity :r_side, [ 50, 4, 50, 96 ]
# Center
gravity :ct, [ 0, 4, 100, 96 ]
gravity :ct66, [ 25, 25, 50, 50 ]
# Gimp
gravity :gimp_image, [ 24, 6, 50, 66 ]
gravity :gimp_toolbox, [ 3, 10, 10, 75 ]
gravity :gimp_dock, [ 85, 7, 12, 90 ]
#
# Grabs
#
# Jump to view1, view2, ...
grab "W-S-1", :ViewJump1
grab "W-S-2", :ViewJump2
grab "W-S-3", :ViewJump3
grab "W-S-4", :ViewJump4
grab "W-S-5", :ViewJump5
# Switch current view
grab "W-1", :ViewSwitch1
grab "W-2", :ViewSwitch2
grab "W-3", :ViewSwitch3
grab "W-4", :ViewSwitch4
grab "W-5", :ViewSwitch5
# Move mouse to screen1, screen2, ...
grab "W-A-1", :ScreenJump1
grab "W-A-2", :ScreenJump2
grab "W-A-3", :ScreenJump3
grab "W-A-4", :ScreenJump4
grab "W-A-5", :ScreenJump5
# Force reload of config and sublets
grab "W-C-r", :SubtleReload
# Force restart of subtle
grab "W-C-S-r", :SubtleRestart
# Quit subtle
grab "W-C-q", :SubtleQuit
# Move current window
grab "W-B1", :WindowMove
# Resize current window
grab "W-B3", :WindowResize
# Toggle floating mode of window
grab "W-f", :WindowFloat
# Toggle fullscreen mode of window
grab "W-space", :WindowFull
# Toggle sticky mode of window (will be visible on all views)
grab "W-s", :WindowStick
# Toggle zaphod mode of window (will span across all screens)
grab "W-equal", :WindowZaphod
# Raise window
grab "W-r", :WindowRaise
# Lower window
grab "W-l", :WindowLower
# Select next windows
grab "W-Left", :WindowLeft
grab "W-Down", :WindowDown
grab "W-Up", :WindowUp
grab "W-Right", :WindowRight
# Kill current window
grab "W-z", :WindowKill
# Cycle between given gravities
grab "W-F1", [ :l_side, :r_side ]
grab "W-F2", [ :ct, :ct66 ]
grab "W-F3", [ :d1, :d2, :d3 ]
grab "W-F4", [ :pp, :we, :mu, :ca, :ma ]
# Exec programs
grab "W-Return", "termite"
grab "W-p", "rofi -show run"
# Run Ruby lambdas
grab "S-F2" do |c|
puts c.name
end
grab "S-F3" do
puts Subtlext::VERSION
end
# custom grab
grab "C-A-Right", "mpc next"
grab "C-A-Left", "mpc prev"
grab "S-A-d", "mpc del 0"
grab "C-A-Up", "mpc volume +2"
grab "C-A-Down", "mpc volume -2"
grab "G-F9", "xbacklight +1"
grab "G-F8", "xbacklight -1"
#
# Tags
#
tag "terms" do
match :instance => "xterm|[u]?rxvt|termite|kitty"
end
tag "browser", "uzbl|opera|firefox|navigator|vivaldi"
tag "fixed" do
geometry [ 10, 10, 100, 100 ]
stick true
end
tag "resize" do
match "sakura|gvim"
resize true
end
tag "gravity" do
gravity :ct
end
# Modes
tag "stick" do
match "mplayer|mpv"
float true
stick true
end
tag "imgs" do
match "sxiv|feh"
gravity :ct66
end
tag "float" do
match "display"
float true
end
# Gimp
tag "gimp_image" do
match :role => "gimp-image-window"
gravity :gimp_image
end
tag "gimp_toolbox" do
match :role => "gimp-toolbox-*"
gravity :gimp_toolbox
end
tag "gimp_dock" do
match :role => "gimp-dock"
gravity :gimp_dock
end
tag "gimp_scum" do
match role: "gimp-.*|screenshot"
end
## programs on view console
gravity :pp, [ 33, 4, 34, 21 ]
gravity :we, [ 0, 13, 28, 79 ]
gravity :mu, [ 72, 13, 28, 40 ]
gravity :ca, [ 72, 53, 28, 39 ]
gravity :ma, [ 33, 34, 34, 65 ]
tag "pwd" do
match "pwd"
gravity :pp
end
tag "chat" do
match :instance => "weechat"
gravity :we
end
tag "music" do
match :instance => "ncmpcpp"
gravity :mu
end
tag "cava" do
match :instance => "cava"
gravity :ca
end
tag "mail" do
match :instance => "mutt"
gravity :ma
end
## programs on view dev
gravity :d1, [ 0, 4, 33, 96 ]
gravity :d2, [ 33, 4, 34, 96 ]
gravity :d3, [ 67, 4, 33, 96 ]
tag "code_1" do
match "code-1"
gravity :d1
end
tag "code_2" do
match "code-2"
gravity :d2
end
tag "code_3" do
match "code-3"
gravity :d3
end
tag "code_4" do
match "code-4"
gravity :d1
end
tag "code_5" do
match "code-5"
gravity :d2
end
tag "code_6" do
match "code-6"
gravity :d3
end
#
# View
#
view "terms", "terms|imgs|default"
view "www", "browser"
view "dev", "code_.*"
view "console", "pwd|music|cava|chat|mail"
view "gimp", "gimp_.*"
#
# Autorun
#
on :start do
Subtlext::Client.spawn( "termite" )
Subtlext::Client.spawn( "vivaldi_sec" )
Subtlext::Client.spawn( "sh ~/.config/polybar/launch.sh" )
Subtlext::Client.spawn( "sh ~/.config/subtle/init_desktop_3.sh" )
Subtlext::Client.spawn( "sh ~/.config/subtle/init_desktop_4.sh" )
end
on :reload do
Subtlext::Client.spawn( "sh ~/.config/polybar/launch.sh" )
end
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh
TERM=/usr/bin/termite
LIST_PROC=(
"code-1"
"code-2"
"code-3"
"code-4"
"code-5"
"code-6"
)
clear_env() {
local old_term=$(ps aux | grep -i "termite --name=code"|awk '{print $2}')
for i in ${old_term[@]} ; do
echo "clear process $i"
kill -9 $i
done
}
launch_proc() {
for i in ${LIST_PROC[@]} ; do
echo "launch proc $i"
$TERM --name="$i" &
sleep .4
done
}
clear_env
trap "launch_proc" EXIT
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/sh
TERM=/usr/bin/termite
LIST_PROC=(
"weechat"
"ncmpcpp"
"mutt"
"pwd"
"cava"
)
clear_env() {
local old_term=$(ps aux|egrep pwd|head -n1|awk '{print $2}')
for i in ${LIST_PROC[@]} ; do
echo "clear process $i"
if [ $i == "pwd" ] ; then
for p in $old_term ; do
kill -9 $p
done
else
for s in $(pgrep -u $UID -x $i) ; do
kill -9 $s
done
fi
done
}
launch_proc() {
for i in ${LIST_PROC[@]} ; do
echo "launch proc $i"
if [ $i == "pwd" ]; then
$TERM --name="$i" &
else
$TERM --name="$i" -e "$i" &
fi
sleep .4
done
}
clear_env
trap "launch_proc" EXIT
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ! Special
*background: #1f2123
*foreground: #d9d1e8
*.cursorColor: #6a605c
! black
*color0: #373b40
*color8: #3c4148
! Red
*color1: #9d3a5c
*color9: #a54566
! Green
*color2: #089568
*color10: #0ca071
! Yellow
*color3: #b05772
*color11: #bf6c85
! Blue
*color4: #646c9f
*color12: #6973b1
! Magenta
*color5: #7c4871
*color13: #8a507e
! Cyan
*color6: #219e92
*color14: #2cac9f
! White
*color7: #b3bece
*color15: #c9d5e8
! Rofi
! fg bgSelect fgSelect
rofi.color-normal: argb:00000000, #219e92, argb:00000000, #373b40,#7c4871
rofi.color-window: argb:ef1f2123, #000000, #832757
|
x
szorfein said about 6 years ago
wallpaper
Other dots on github.
Dobbie03 said about 6 years ago
Awesome stuff. Love this.