tabbing
This commit is contained in:
parent
92f4f9172f
commit
7eab878a0d
2 changed files with 51 additions and 33 deletions
|
@ -18,6 +18,10 @@ import qualified XMonad.StackSet as W
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
||||||
import XMonad.Layout.Spacing
|
import XMonad.Layout.Spacing
|
||||||
|
import XMonad.Layout.Tabbed
|
||||||
|
|
||||||
|
import XMonad.Prompt
|
||||||
|
import XMonad.Prompt.Layout
|
||||||
|
|
||||||
-- The preferred terminal program, which is used in a binding below and by
|
-- The preferred terminal program, which is used in a binding below and by
|
||||||
-- certain contrib modules.
|
-- certain contrib modules.
|
||||||
|
@ -89,7 +93,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||||
, ((modm, xK_n ), refresh)
|
, ((modm, xK_n ), refresh)
|
||||||
|
|
||||||
-- Move focus to the next window
|
-- Move focus to the next window
|
||||||
, ((modm, xK_Tab ), windows W.focusDown)
|
, ((modm, xK_Tab ), layoutPrompt def)
|
||||||
|
|
||||||
-- Move focus
|
-- Move focus
|
||||||
, ((modm, xK_j ), windows W.focusDown)
|
, ((modm, xK_j ), windows W.focusDown)
|
||||||
|
@ -173,8 +177,19 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||||
--
|
--
|
||||||
-- The available layouts. Note that each layout is separated by |||,
|
-- The available layouts. Note that each layout is separated by |||,
|
||||||
-- which denotes layout choice.
|
-- which denotes layout choice.
|
||||||
--
|
|
||||||
myLayout = tiled ||| Mirror tiled ||| Full
|
tabCfg = def
|
||||||
|
{ activeColor = "#282828"
|
||||||
|
, inactiveColor = "#1d2021"
|
||||||
|
, urgentColor = "#9d0006"
|
||||||
|
, activeBorderColor = "#504945"
|
||||||
|
, inactiveBorderColor = "#3c3836"
|
||||||
|
, urgentBorderColor = "#cc241d"
|
||||||
|
, activeTextColor = "#ebdbb2"
|
||||||
|
, inactiveTextColor = "#bdae93"
|
||||||
|
, urgentTextColor = "#ebdbb2"
|
||||||
|
}
|
||||||
|
myLayout = tiled ||| tabbed shrinkText tabCfg ||| Mirror tiled
|
||||||
where
|
where
|
||||||
-- default tiling algorithm partitions the screen into two panes
|
-- default tiling algorithm partitions the screen into two panes
|
||||||
tiled = Tall nmaster delta ratio
|
tiled = Tall nmaster delta ratio
|
||||||
|
|
|
@ -1,35 +1,38 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
pkgs.writeShellScriptBin "desktopctl" ''
|
pkgs.writeShellScriptBin "desktopctl" ''
|
||||||
case $@ in
|
run() {
|
||||||
"Lock Screen")
|
case $@ in
|
||||||
nohup sh -c "i3lock-fancy" > /dev/null &
|
"Lock Screen")
|
||||||
exit 0
|
nohup sh -c "i3lock-fancy" > /dev/null &
|
||||||
;;
|
exit 0
|
||||||
"Log Out")
|
;;
|
||||||
pkill xmonad
|
"Log Out")
|
||||||
exit 0
|
pkill xmonad
|
||||||
;;
|
exit 0
|
||||||
"Shut Down")
|
;;
|
||||||
shutdown now
|
"Shut Down")
|
||||||
exit 0
|
shutdown now
|
||||||
;;
|
exit 0
|
||||||
"Reboot")
|
;;
|
||||||
systemctl reboot
|
"Reboot")
|
||||||
exit 0
|
systemctl reboot
|
||||||
;;
|
exit 0
|
||||||
esac
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# resizes grid
|
# resizes grid
|
||||||
echo -en "\0theme\x1flistview,inputbar,message{columns:4;lines:1;}\n"
|
echo -en "\0theme\x1flistview,inputbar,message{columns:4;lines:1;}\n"
|
||||||
# resizes window, moves it to top of screen, adjusts rounded corners
|
# resizes window, moves it to top of screen, adjusts rounded corners
|
||||||
echo -en "\0theme\x1fwindow{width:800px;location:north;y-offset:24px;border-radius:0 0 12px 12px;}\n"
|
echo -en "\0theme\x1fwindow{width:800px;location:north;y-offset:24px;border-radius:0 0 12px 12px;}\n"
|
||||||
# swaps grid and input bar
|
# swaps grid and input bar
|
||||||
echo -en "\0theme\x1fmainbox{children:[listview,inputbar];}\n"
|
echo -en "\0theme\x1fmainbox{children:[listview,inputbar];}\n"
|
||||||
# fixes brown line below input bar
|
# fixes brown line below input bar
|
||||||
echo -en "\0theme\x1finputbar{margin:0;}\n"
|
echo -en "\0theme\x1finputbar{margin:0;}\n"
|
||||||
|
|
||||||
echo -en "Lock Screen\0icon\x1f${../../../other/assets/desktopctl/lock-screen.svg}\n"
|
echo -en "Lock Screen\0icon\x1f${../../../other/assets/desktopctl/lock-screen.svg}\n"
|
||||||
echo -en "Log Out\0icon\x1f${../../../other/assets/desktopctl/logout.svg}\n"
|
echo -en "Log Out\0icon\x1f${../../../other/assets/desktopctl/logout.svg}\n"
|
||||||
echo -en "Shut Down\0icon\x1f${../../../other/assets/desktopctl/shutdown.svg}\n"
|
echo -en "Shut Down\0icon\x1f${../../../other/assets/desktopctl/shutdown.svg}\n"
|
||||||
echo -en "Reboot\0icon\x1f${../../../other/assets/desktopctl/reboot.svg}\n"
|
echo -en "Reboot\0icon\x1f${../../../other/assets/desktopctl/reboot.svg}\n"
|
||||||
|
}
|
||||||
|
rofi -show "desktopctl" -modes "desktopctl:run"
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue