From 6ed77756b4c19b3b0c4203e683c2ba8fe8648c4b Mon Sep 17 00:00:00 2001 From: derped Date: Wed, 5 Jun 2019 02:18:46 +0200 Subject: [PATCH] New surface related keybinds and more py3modules. --- config/etc.nix | 3 ++- config/etc/i3/config | 26 ++++++++++++++++++-------- config/etc/i3/py3status | 7 ++++--- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/config/etc.nix b/config/etc.nix index 2c3bbfc..f6cd3b2 100644 --- a/config/etc.nix +++ b/config/etc.nix @@ -16,6 +16,7 @@ with lib; NIXPKGS_ALLOW_UNFREE="1"; WINEDLLOVERRIDES="winemenubuilder.exe=d"; LC_CTYPE="zh_CN.UTF-8"; - QT_SCALE_FACTOR="0.7"; + # This breaks a lot of applications + # QT_SCALE_FACTOR="0.7"; }; } diff --git a/config/etc/i3/config b/config/etc/i3/config index ddd45f6..7ea8561 100644 --- a/config/etc/i3/config +++ b/config/etc/i3/config @@ -2,7 +2,6 @@ # # Please see http://i3wm.org/docs/userguide.html for a complete reference! -### INIT xfce session stuff ### exec redshift-gtk -l 51.0504:13.7373 ### START USER CONFIG ### @@ -13,6 +12,14 @@ new_window pixel hide_edge_borders both exec setxkbmap de +exec xinput --map-to-output "ipts 045E:001F Pen Pen (0)" eDP1 +exec xinput --map-to-output "ipts 045E:001F Pen Eraser (0)" eDP1 +exec xinput --map-to-output "ipts 045E:001F Touchscreen" eDP1 + +bindsym $mod+Shift+s exec xinput --map-to-output "ipts 045E:001F Pen Pen (0)" eDP1; exec xinput --map-to-output "ipts 045E:001F Pen Eraser (0)" eDP1; exec xinput --map-to-output "ipts 045E:001F Touchscreen" eDP1 +bindsym $mod+Shift+a exec xinput --enable "ipts 045E:001F Touchscreen" +bindsym $mod+Shift+d exec xinput --disable "ipts 045E:001F Touchscreen" + #exec compton -f exec feh --bg-scale Pictures/wallpaper.jpg #exec pulseaudio -D @@ -28,7 +35,7 @@ exec feh --bg-scale Pictures/wallpaper.jpg ### END USER PROGRAMMS ### -### START SYSKEY BINDSYM ### +### START MEDIA BINDSYM ### bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPause exec playerctl pause @@ -36,10 +43,14 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous bindsym $mod+Mod1+space exec playerctl play-pause -bindsym $mod+Mod1+Right exec playerctl next -bindsym $mod+Mod1+Left exec playerctl previous +bindsym $mod+Mod1+Left exec playerctl position 10- +bindsym $mod+Mod1+Right exec playerctl position 10+ +bindsym $mod+Mod1+Down exec playerctl next +bindsym $mod+Mod1+Up exec playerctl previous bindsym $mod+Shift+w sticky toggle +bindsym $mod+Shift+B floating enable; border none; resize set 900 600; move position 1836 38 + ### END SYSKEY BINDSYM ### @@ -73,7 +84,6 @@ bindsym --release $mod+Shift+S exec scrot bindsym --release $mod+Ctrl+S exec "scrot --select" bindsym --release $mod+Ctrl+A exec "scrot -s '/tmp/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f && rm $f'" bindsym $mod+o exec pcmanfm -bindsym $mod+Shift+B floating enable; border none; resize set 900 600; move position 1836 38 ### END BINDSYM ### @@ -138,7 +148,7 @@ bindsym $mod+Shift+q kill # start dmenu (a program launcher) #bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 330 -opacity "85" -config ~/.config/rofi.cfg -font "System San Francisco Display 12" -bindsym $mod++d exec dmenu_run -fn 'Droid Sans Mono-8' +bindsym $mod+d exec dmenu_run -fn 'Droid Sans Mono-8' # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. @@ -180,7 +190,7 @@ bindsym $mod+v split v bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking +bindsym $mod+q layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split @@ -194,7 +204,7 @@ bindsym $mod+space focus mode_toggle bindsym $mod+a focus parent # focus the child container -#bindsym $mod+d focus child +bindsym $mod+s focus child # switch to workspace bindsym $mod+1 workspace 1 diff --git a/config/etc/i3/py3status b/config/etc/i3/py3status index 2d257cf..26bd898 100644 --- a/config/etc/i3/py3status +++ b/config/etc/i3/py3status @@ -9,15 +9,15 @@ general { # output_format = "dzen2" colors = true - interval = 1 - } order += "group network" order += "disk /" order += "dpms" -order += "load" +order += "backlight" order += "volume_status" +order += "cpu_temperature 0" +order += "load" order += "group tz" group network { @@ -37,6 +37,7 @@ group network { } group tz { + interval = 1 format = "{output}" button_next = 1 button_previous = 2