Compare commits
No commits in common. "3be4afee613509ca45d42f8dd04f9003d10f6f52" and "acbca69fa0db220fe16fe21185f8c48b621f6627" have entirely different histories.
3be4afee61
...
acbca69fa0
3 changed files with 41 additions and 105 deletions
65
i3/config
65
i3/config
|
@ -9,13 +9,11 @@
|
||||||
#
|
#
|
||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
# Mod4 = Super/Windows, Mod1 = ALT
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
#set $mod Mod1
|
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
#font pango:monospace 8
|
font pango:monospace 8
|
||||||
|
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
@ -46,6 +44,10 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
|
# move tiling windows via drag & drop by left-clicking into the title bar,
|
||||||
|
# or left-clicking anywhere into the window while holding the floating modifier.
|
||||||
|
tiling_drag modifier titlebar
|
||||||
|
|
||||||
# start a terminal
|
# start a terminal
|
||||||
bindsym $mod+Return exec i3-sensible-terminal
|
bindsym $mod+Return exec i3-sensible-terminal
|
||||||
|
|
||||||
|
@ -53,9 +55,9 @@ bindsym $mod+Return exec i3-sensible-terminal
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# start dmenu (a program launcher)
|
# start dmenu (a program launcher)
|
||||||
#bindsym $mod+d exec --no-startup-id dmenu_run
|
bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
# A more modern dmenu replacement is rofi:
|
# A more modern dmenu replacement is rofi:
|
||||||
bindcode $mod+40 exec "rofi -show combi"
|
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
|
||||||
# There also is i3-dmenu-desktop which only displays applications shipping a
|
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||||
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||||
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
||||||
|
@ -94,9 +96,9 @@ bindsym $mod+v split v
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
#bindsym $mod+s layout stacking
|
bindsym $mod+s layout stacking
|
||||||
#bindsym $mod+w layout tabbed
|
bindsym $mod+w layout tabbed
|
||||||
#bindsym $mod+e layout toggle split
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
@ -152,7 +154,7 @@ bindsym $mod+Shift+c reload
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "i3-msg exit"
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
|
@ -181,49 +183,8 @@ mode "resize" {
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
font pango:fira code 12
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
|
# finds out, if available)
|
||||||
# ------------------------- COLORS -------------------------
|
|
||||||
set $fg-color #fdfff1
|
|
||||||
set $bg-color #272821
|
|
||||||
set $contrast-color #3b3c35
|
|
||||||
set $red-color #f82570
|
|
||||||
set $green-color #a6e12d
|
|
||||||
set $yellow-color #e4db73
|
|
||||||
set $orange-color #fc961f
|
|
||||||
set $purple-color #ae81ff
|
|
||||||
|
|
||||||
# class border backgr. text indicator child_border
|
|
||||||
client.focused $contrast-color $bg-color $yellow-color $contrast-color $contrast-color
|
|
||||||
client.focused_inactive $bg-color $bg-color $yellow-color $bg-color $bg-color
|
|
||||||
client.unfocused $bg-color $bg-color $contrast-color $bg-color $bg-color
|
|
||||||
client.urgent $red-color $bg-color $red-color $red-color $red-color
|
|
||||||
client.placeholder $bg-color $bg-color $yellow-color $bg-color $bg-color
|
|
||||||
client.background $fg-color
|
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
status_command i3status
|
status_command i3status
|
||||||
position top
|
|
||||||
tray_output primary
|
|
||||||
|
|
||||||
colors {
|
|
||||||
background $bg-color
|
|
||||||
statusline $fg-color
|
|
||||||
separator $fg-color
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
exec --no-startup-id xsetroot -solid "#272822"
|
|
||||||
#exec --no-startup-id xfce4-power-manager
|
|
||||||
#exec --no-startup-id blueman-applet
|
|
||||||
exec --no-startup-id dunst
|
|
||||||
exec --no-startup-id pasystray
|
|
||||||
#exec --no-startup-id nextcloud
|
|
||||||
exec --no-startup-id bitwarden
|
|
||||||
exec --no-startup-id steam -silent
|
|
||||||
#exec --no-startup-id obs --startreplaybuffer
|
|
||||||
exec --no-startup-id discord
|
|
||||||
|
|
||||||
bindsym --release Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import $filu;xclip -selection clipboard -t image/png -i $filu"
|
|
||||||
bindsym --release Mod4+Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import -window root $filu;xclip -selection clipboard -t image/png -i $filu"
|
|
||||||
bindsym --release Mod1+Sys_Req exec "winid=$(xwininfo | awk '{print $4}' | grep -i 0x);aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import -window $winid $filu;xclip -selection clipboard -t image/png -i $filu"
|
|
||||||
|
|
|
@ -82,16 +82,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = "fi";
|
layout = "fi";
|
||||||
xkbVariant = "nodeadkeys";
|
xkbVariant = "nodeadkeys";
|
||||||
libinput = {
|
libinput.enable = true;
|
||||||
enable = true;
|
|
||||||
mouse = {
|
|
||||||
accelProfile = "flat";
|
|
||||||
accelSpeed = ".5"; # -1..1
|
|
||||||
};
|
|
||||||
touchpad = {
|
|
||||||
accelProfile = "flat";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
deviceSection = ''
|
deviceSection = ''
|
||||||
Option "VariableRefresh" "True"
|
Option "VariableRefresh" "True"
|
||||||
'';
|
'';
|
||||||
|
@ -99,21 +90,6 @@
|
||||||
lightdm.enable = true;
|
lightdm.enable = true;
|
||||||
autoLogin.enable = true;
|
autoLogin.enable = true;
|
||||||
autoLogin.user = "jt";
|
autoLogin.user = "jt";
|
||||||
defaultSession = "none+i3";
|
|
||||||
};
|
|
||||||
windowManager = {
|
|
||||||
i3 = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
dmenu
|
|
||||||
rofi
|
|
||||||
dunst
|
|
||||||
imagemagick
|
|
||||||
xclip
|
|
||||||
i3status
|
|
||||||
i3lock
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
|
@ -180,6 +156,9 @@
|
||||||
programs.htop.enable = true;
|
programs.htop.enable = true;
|
||||||
programs.tmux.enable = true;
|
programs.tmux.enable = true;
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
#services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
@ -35,24 +35,24 @@
|
||||||
active-background: rgba ( 39, 40, 34, 0 % );
|
active-background: rgba ( 39, 40, 34, 0 % );
|
||||||
selected-active-background: rgba ( 20, 20, 17, 100 % );
|
selected-active-background: rgba ( 20, 20, 17, 100 % );
|
||||||
}
|
}
|
||||||
window {
|
#window {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
border: 1;
|
border: 1;
|
||||||
padding: 5;
|
padding: 5;
|
||||||
}
|
}
|
||||||
mainbox {
|
#mainbox {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
message {
|
#message {
|
||||||
border: 2px 0px 0px ;
|
border: 2px 0px 0px ;
|
||||||
border-color: @separatorcolor;
|
border-color: @separatorcolor;
|
||||||
padding: 1px ;
|
padding: 1px ;
|
||||||
}
|
}
|
||||||
textbox {
|
#textbox {
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
listview {
|
#listview {
|
||||||
fixed-height: 0;
|
fixed-height: 0;
|
||||||
border: 2px 0px 0px ;
|
border: 2px 0px 0px ;
|
||||||
border-color: @separatorcolor;
|
border-color: @separatorcolor;
|
||||||
|
@ -60,85 +60,81 @@ listview {
|
||||||
scrollbar: true;
|
scrollbar: true;
|
||||||
padding: 2px 0px 0px ;
|
padding: 2px 0px 0px ;
|
||||||
}
|
}
|
||||||
element {
|
#element {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 1px ;
|
padding: 1px ;
|
||||||
}
|
}
|
||||||
element-text {
|
#element.normal.normal {
|
||||||
background-color: inherit;
|
|
||||||
text-color: inherit;
|
|
||||||
}
|
|
||||||
element.normal.normal {
|
|
||||||
background-color: @normal-background;
|
background-color: @normal-background;
|
||||||
text-color: @normal-foreground;
|
text-color: @normal-foreground;
|
||||||
}
|
}
|
||||||
element.normal.urgent {
|
#element.normal.urgent {
|
||||||
background-color: @urgent-background;
|
background-color: @urgent-background;
|
||||||
text-color: @urgent-foreground;
|
text-color: @urgent-foreground;
|
||||||
}
|
}
|
||||||
element.normal.active {
|
#element.normal.active {
|
||||||
background-color: @active-background;
|
background-color: @active-background;
|
||||||
text-color: @active-foreground;
|
text-color: @active-foreground;
|
||||||
}
|
}
|
||||||
element.selected.normal {
|
#element.selected.normal {
|
||||||
background-color: @selected-normal-background;
|
background-color: @selected-normal-background;
|
||||||
text-color: @selected-normal-foreground;
|
text-color: @selected-normal-foreground;
|
||||||
}
|
}
|
||||||
element.selected.urgent {
|
#element.selected.urgent {
|
||||||
background-color: @selected-urgent-background;
|
background-color: @selected-urgent-background;
|
||||||
text-color: @selected-urgent-foreground;
|
text-color: @selected-urgent-foreground;
|
||||||
}
|
}
|
||||||
element.selected.active {
|
#element.selected.active {
|
||||||
background-color: @selected-active-background;
|
background-color: @selected-active-background;
|
||||||
text-color: @selected-active-foreground;
|
text-color: @selected-active-foreground;
|
||||||
}
|
}
|
||||||
element.alternate.normal {
|
#element.alternate.normal {
|
||||||
background-color: @alternate-normal-background;
|
background-color: @alternate-normal-background;
|
||||||
text-color: @alternate-normal-foreground;
|
text-color: @alternate-normal-foreground;
|
||||||
}
|
}
|
||||||
element.alternate.urgent {
|
#element.alternate.urgent {
|
||||||
background-color: @alternate-urgent-background;
|
background-color: @alternate-urgent-background;
|
||||||
text-color: @alternate-urgent-foreground;
|
text-color: @alternate-urgent-foreground;
|
||||||
}
|
}
|
||||||
element.alternate.active {
|
#element.alternate.active {
|
||||||
background-color: @alternate-active-background;
|
background-color: @alternate-active-background;
|
||||||
text-color: @alternate-active-foreground;
|
text-color: @alternate-active-foreground;
|
||||||
}
|
}
|
||||||
scrollbar {
|
#scrollbar {
|
||||||
width: 4px ;
|
width: 4px ;
|
||||||
border: 0;
|
border: 0;
|
||||||
handle-width: 8px ;
|
handle-width: 8px ;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
mode-switcher {
|
#mode-switcher {
|
||||||
border: 2px 0px 0px ;
|
border: 2px 0px 0px ;
|
||||||
border-color: @separatorcolor;
|
border-color: @separatorcolor;
|
||||||
}
|
}
|
||||||
button.selected {
|
#button.selected {
|
||||||
background-color: @selected-normal-background;
|
background-color: @selected-normal-background;
|
||||||
text-color: @selected-normal-foreground;
|
text-color: @selected-normal-foreground;
|
||||||
}
|
}
|
||||||
inputbar {
|
#inputbar {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: @normal-foreground;
|
text-color: @normal-foreground;
|
||||||
padding: 1px ;
|
padding: 1px ;
|
||||||
}
|
}
|
||||||
case-indicator {
|
#case-indicator {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: @normal-foreground;
|
text-color: @normal-foreground;
|
||||||
}
|
}
|
||||||
entry {
|
#entry {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: @normal-foreground;
|
text-color: @normal-foreground;
|
||||||
}
|
}
|
||||||
prompt {
|
#prompt {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: @normal-foreground;
|
text-color: @normal-foreground;
|
||||||
}
|
}
|
||||||
inputbar {
|
#inputbar {
|
||||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
}
|
}
|
||||||
textbox-prompt-colon {
|
#textbox-prompt-colon {
|
||||||
expand: false;
|
expand: false;
|
||||||
str: ":";
|
str: ":";
|
||||||
margin: 0px 0.3em 0em 0em ;
|
margin: 0px 0.3em 0em 0em ;
|
||||||
|
|
Loading…
Reference in a new issue