dual monitor update
This commit is contained in:
parent
64e0765933
commit
fb4e341a04
11 changed files with 68 additions and 1134 deletions
|
@ -3,6 +3,7 @@
|
|||
ckb-next -c -b &
|
||||
mullvad connect &
|
||||
xrdb -l ~/.Xresources &
|
||||
wlr-randr --output HDMI-A-1 --transform 90
|
||||
|
||||
# for later..
|
||||
# gsettings set org.gnome.desktop.interface gtk-theme '${rice.gtk-theme.name}'";}
|
||||
|
|
|
@ -12,7 +12,7 @@ from libqtile.log_utils import logger
|
|||
from libqtile import bar, hook, layout, qtile, utils, widget
|
||||
from libqtile.backend import base
|
||||
from libqtile.lazy import lazy
|
||||
from libqtile.config import Key, Match, Screen, Click, Drag, Group, ScratchPad, DropDown
|
||||
from libqtile.config import Key, Match, Screen, Click, Drag, Group, ScratchPad, DropDown, Screen
|
||||
|
||||
# from smartfloat import SmartFloat
|
||||
|
||||
|
@ -101,11 +101,28 @@ keys = [
|
|||
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod], "space", lazy.window.toggle_floating()),
|
||||
Key([mod, "shift"], "space", lazy.window.toggle_fullscreen()),
|
||||
Key([mod], "Tab", lazy.next_layout()),
|
||||
Key([mod], "Tab", lazy.next_screen()),
|
||||
]
|
||||
|
||||
groups = []
|
||||
land_groups = "123"
|
||||
port_groups = "456"
|
||||
groups.extend([Group(i, screen_affinity=1) for i in land_groups])
|
||||
groups.extend([Group(i, screen_affinity=0) for i in port_groups])
|
||||
|
||||
groups = [Group(i) for i in "123456"]
|
||||
def go_to_group(name: str) -> Callable:
|
||||
def _inner(qtile: Qtile) -> None:
|
||||
if len(qtile.screens) ==1:
|
||||
qtile.groups_map[name].toscreen()
|
||||
return
|
||||
if name in land_groups:
|
||||
qtile.focus_screen(1)
|
||||
qtile.groups_map[name].toscreen()
|
||||
else:
|
||||
qtile.focus_screen(0)
|
||||
qtile.groups_map[name].toscreen()
|
||||
|
||||
return _inner
|
||||
|
||||
for i in groups:
|
||||
keys.extend(
|
||||
|
@ -114,7 +131,8 @@ for i in groups:
|
|||
Key(
|
||||
[mod],
|
||||
i.name,
|
||||
lazy.group[i.name].toscreen(),
|
||||
lazy.function(go_to_group(i.name)),
|
||||
# lazy.group[i.name].toscreen(),
|
||||
desc="Switch to group {}".format(i.name),
|
||||
),
|
||||
# mod1 + shift + letter of group = move focused window to group
|
||||
|
@ -176,7 +194,6 @@ layout_theme = dict(
|
|||
|
||||
layouts = [
|
||||
layout.Bsp(fair=False, border_on_single=True, **layout_theme),
|
||||
layout.TreeTab(**layout_theme),
|
||||
# layout.SmartFloat(**layout_theme),
|
||||
]
|
||||
|
||||
|
@ -200,6 +217,7 @@ mouse = [
|
|||
]
|
||||
|
||||
screens = [
|
||||
Screen(),
|
||||
Screen(
|
||||
top=bar.Bar(
|
||||
[
|
||||
|
@ -251,7 +269,8 @@ def float_firefox(client):
|
|||
@hook.subscribe.client_new
|
||||
def fullscreen_wlogout(client):
|
||||
if client.name == "wlogout":
|
||||
client.enable_fullscreen()
|
||||
client.enable_floating()
|
||||
client.bring_to_front()
|
||||
|
||||
|
||||
@hook.subscribe.focus_change
|
||||
|
|
78
home/dots/qtile/flake.lock
generated
78
home/dots/qtile/flake.lock
generated
|
@ -1,78 +0,0 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1697583813,
|
||||
"narHash": "sha256-SRXK2EBMZHlOAs/5bjphhX9XnIKR6peTV6i7yoL6/Lg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b5f8ec6be261dfc44c3b56b220e2793d1b61512b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-23.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1697379843,
|
||||
"narHash": "sha256-RcnGuJgC2K/UpTy+d32piEoBXq2M+nVFzM3ah/ZdJzg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "12bdeb01ff9e2d3917e6a44037ed7df6e6c3df9d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694529238,
|
||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue