aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2023-12-19 21:25:42 +0100
committerSébastien Dailly <sebastien@dailly.me>2023-12-19 21:25:42 +0100
commit7ddeeb2ebb2f1da415f9a93482f2ec1225ee4290 (patch)
tree65c35fa33b499313f71a1c0c6e6428e8feb70494
parent7074d007fa16eeb62148f18746e3f2893741dd00 (diff)
Removed the i3 stuff
-rw-r--r--i3/.config/i3/config276
-rw-r--r--i3/.config/i3/workspaces/50:pdf_edit.json75
-rw-r--r--i3/.config/i3/workspaces/51:code.json86
-rwxr-xr-xi3/scripts/i3/gaps.sh4
-rw-r--r--i3/scripts/i3/negate_color.py25
-rwxr-xr-xi3/scripts/i3/wallpaper.sh45
-rw-r--r--i3_workspaces/.config/i3_workspaces/config36
7 files changed, 0 insertions, 547 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
deleted file mode 100644
index c1d05d4..0000000
--- a/i3/.config/i3/config
+++ /dev/null
@@ -1,276 +0,0 @@
-
-# i3 config file (v4)
-#
-# Please see http://i3wm.org/docs/userguide.html for a complete reference!
-
-# Some colors
-# See .Xdefaults for the color list
-exec xrdb -merge ~/.Xdefaults
-
-# Red
-set_from_resource $color1 i3wm.COLOR1 #b32c59
-set_from_resource $color9 i3wm.COLOR9 #e6175c
-
-# Green
-set_from_resource $color2 i3wm.COLOR2 #86b359
-set_from_resource $color10 i3wm.COLOR10 #a1e65c
-
-set_from_resource $color3 i3wm.COLOR3 #b38659
-set_from_resource $color11 i3wm.COLOR11 #e6a15c
-
-# Blue
-set_from_resource $color4 i3wm.COLOR4 #5986b3
-set_from_resource $color12 i3wm.COLOR12 #5ca1e6
-
-set_from_resource $color5 i3wm.COLOR5 #8659b3
-set_from_resource $color13 i3wm.COLOR13 #a15ce6
-
-# Cyan
-set_from_resource $color6 i3wm.COLOR6 #59b386
-set_from_resource $color14 i3wm.COLOR14 #5ce6a1
-
-# Black
-set_from_resource $color0 i3wm.COLOR0 #444444
-set_from_resource $color8 i3wm.COLOR8 #0a0a0a
-
-set_from_resource $color7 i3wm.COLOR7 #e6e6e6
-set_from_resource $color15 i3wm.COLOR15 #eeeeee
-
-# The workspaces are just the number, without label.
-# This allow to set only an icon, without any other texte (if the workspace has a
-# name, polybar will always display it, it is not possible to replace the label
-# with the icon)
-set $workspace_1 1:
-set $workspace_2 2:
-set $workspace_3 3:
-set $workspace_4 4:
-set $workspace_5 5:
-set $workspace_6 6:
-set $workspace_7 7:
-set $workspace_8 8:
-set $workspace_9 9:
-set $workspace_10 10:
-set $workspace_11 11:
-set $workspace_12 12:
-set $Messages 98:
-set $Inkscape 99:
-set $Mail mail:
-set $Web web:
-set $Musique Musique:
-
-set_from_resource $black i3wm.COLOR0 #444444
-
-# class border backgr. text indicator child_border
-client.focused $color2 $black #ffffff $color9 $color2
-client.focused_inactive $color8 #5f676a #ffffff $color5 $color8
-client.unfocused $color2 #222222 #888888 #292d2e $color5
-client.urgent #2f343a #900000 #ffffff #900000 $color1
-client.placeholder $black #0c0c0c #ffffff $black $black
-
-# Remove title bar
-default_border pixel 5
-#hide_edge_borders smart
-#for_window [class="^.*"] border pixel 0
-
-# i3 gaps
-#smart_gaps on
-#smart_borders on
-
-#gaps inner 15
-#gaps outer 0
-
-#hide_edge_borders smart
-
-set $mod Mod4
-# The Alt Gr Key
-set $modAltkey Mod5
-
-#new_window normal
-
-# Font for window titles. Will also be used by the bar unless a different font
-# is used in the bar {} block below. ISO 10646 = Unicode
-# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
-# The font above is very space-efficient, that is, it looks good, sharp and
-# clear in small sizes. However, if you need a lot of unicode glyphs or
-# right-to-left text rendering, you should instead use pango for rendering and
-# chose a FreeType font, such as:
-font pango:DejaVu Sans Mono 5
-
-# Use Mouse+$mod to drag floating windows to their wanted position
-floating_modifier $mod
-
-# start a terminal
-bindsym $mod+Return exec urxvtcd
-#bindsym $mod+Return exec kitty
-#bindsym $mod+Return exec python3 /home/sebastien/Projets/kitty/__main__.py -1
-
-# kill focused window
-bindsym $mod+q kill
-
-# start dmenu (a program launcher)
-#bindsym $mod+i exec rofi -show drun -show-icons
-bindsym $mod+i exec rofi -show run -show-icons
-
-# bindsym $mod+i exec synapse
-
-bindsym $modAltkey+Tab exec --no-startup-id "rofi -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show window"
-bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="rofi -dmenu -p run"
-bindsym $mod+W exec --no-startup-id "rofi -lines 5 -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show Workspaces"
-bindsym $mod+r exec --no-startup-id "rofi -lines 5 -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Renommer:~/dotfiles/rofi/rename.sh\\" -show Renommer"
-bindsym $mod+n exec --no-startup-id "rofi -lines 5 -modi \\"window,Workspaces:~/dotfiles/rofi/workspaces.sh,Nouveau:~/dotfiles/rofi/new.sh\\" -show Nouveau"
-
-# change focus
-# bindsym $mod+t focus left
-# bindsym $mod+s focus down
-# bindsym $mod+r focus up
-# bindsym $mod+n focus right
-
-# alternatively, you can use the cursor keys:
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
-# move focused window
-bindsym $mod+Shift+t move left
-bindsym $mod+Shift+s move down
-bindsym $mod+Shift+r move up
-bindsym $mod+Shift+n move right
-
-# alternatively, you can use the cursor keys:
-bindsym $mod+Shift+Left move left
-bindsym $mod+Shift+Down move down
-bindsym $mod+Shift+Up move up
-bindsym $mod+Shift+Right move right
-
-# split in horizontal orientation
-bindsym $mod+h split h
-
-# split in vertical orientation
-bindsym $mod+v split v
-
-# enter fullscreen mode for the focused container
-bindsym $mod+f fullscreen
-
-# change container layout (stacked, tabbed, toggle split)
-bindsym $mod+u layout stacking
-bindsym $mod+eacute layout tabbed
-bindsym $mod+t layout toggle split
-
-# toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
-
-# change focus between tiling / floating windows
-bindsym $mod+space focus mode_toggle
-# bindsym $mod+space exec /usr/bin/xfce4-popup-whiskermenu
-
-# focus the parent container
-bindsym $mod+a focus parent
-
-# focus the child container
-#bindsym $mod+d focus child
-
-
-# switch to workspace
-bindsym $modAltkey+F1 workspace number $workspace_1
-bindsym $modAltkey+F2 workspace number $workspace_2
-bindsym $modAltkey+F3 workspace number $workspace_3
-bindsym $modAltkey+F4 workspace number $workspace_4
-bindsym $modAltkey+F5 workspace number $workspace_5
-bindsym $mod+F6 workspace number $workspace_6
-bindsym $mod+F7 workspace number $workspace_7
-bindsym $mod+F8 workspace number $workspace_8
-bindsym $mod+F9 workspace number $workspace_9
-bindsym $mod+F10 workspace number $workspace_10
-bindsym $mod+F11 workspace number $workspace_11
-bindsym $mod+F12 workspace number $workspace_12
-
-bindsym XF86Mail workspace $Mail
-bindsym XF86Calculator workspace $Musique
-bindsym XF86HomePage workspace $Web
-
-# move focused container to workspace
-bindsym $modAltkey+Shift+F1 move container to workspace number $workspace_1
-bindsym $modAltkey+Shift+F2 move container to workspace number $workspace_2
-bindsym $modAltkey+Shift+F3 move container to workspace number $workspace_3
-bindsym $modAltkey+Shift+F4 move container to workspace number $workspace_4
-bindsym $modAltkey+Shift+F5 move container to workspace number $workspace_5
-bindsym $mod+Shift+F6 move container to workspace number $workspace_6
-bindsym $mod+Shift+F7 move container to workspace number $workspace_7
-bindsym $mod+Shift+F8 move container to workspace number $workspace_8
-bindsym $mod+Shift+F9 move container to workspace number $workspace_9
-bindsym $mod+Shift+F10 move container to workspace number $workspace_10
-bindsym $mod+Shift+F11 move container to workspace number $workspace_11
-bindsym $mod+Shift+F12 move container to workspace number $workspace_12
-
-bindsym $mod+Shift+XF86HomePage move container to workspace $Web
-bindsym $mod+Shift+XF86Mail move container to workspace $Mail
-bindsym $mod+Shift+XF86Calculator move container to workspace $Musique
-
-# reload the configuration file
-bindsym $mod+Shift+x reload
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
-bindsym $mod+Shift+o restart
-# exit i3 (logs you out of your X session)
-#bindsym $mod+Shift+p 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)
-set $mode_resize "Resize"
-mode $mode_resize {
- # These bindings trigger as soon as you enter the resize mode
-
- # Pressing left will shrink the window’s width.
- # Pressing right will grow the window’s width.
- # Pressing up will shrink the window’s height.
- # Pressing down will grow the window’s height.
- bindsym t resize shrink width 5 px or 5 ppt
- bindsym s resize grow height 5 px or 5 ppt
- bindsym r resize shrink height 5 px or 5 ppt
- bindsym n resize grow width 5 px or 5 ppt
-
- # same bindings, but for the arrow keys
- bindsym Left resize shrink width 5 px or 5 ppt
- bindsym Down resize grow height 5 px or 5 ppt
- bindsym Up resize shrink height 5 px or 5 ppt
- bindsym Right resize grow width 5 px or 5 ppt
-
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
-}
-bindsym $mod+o mode $mode_resize
-
-set $mode_move "Déplacer"
-mode $mode_move {
- # These bindings trigger as soon as you enter the move mode
-
- bindsym Left move left
- bindsym Down move down
- bindsym Up move up
- bindsym Right move right
-
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
-}
-bindsym $mod+m mode $mode_move
-
-bindsym $modAltkey+Escape workspace back_and_forth
-bindsym shift+$modAltkey+Escape move container to workspace back_and_forth
-bindsym shift+XF86HomePage exec pcmanfm-qt
-
-assign [class="Microsoft Teams"] $Messages
-assign [class="Signal"] $Messages
-assign [class="Inkscape"] $Inkscape
-assign [class="Gmpc"] $Musique
-
-for_window [class="QtPass"] floating enable, sticky enable
-
-# Add background, with a gradient on top
-exec --no-startup-id ~/scripts/i3/wallpaper.sh ~/wallpaper/current.jpg
-exec --no-startup-id xrdb .Xdefaults
-#exec --no-startup-id compton
-exec --no-startup-id "xrdb .Xdefaults; polybar i3"
-#exec --no-startup-id "unclutter"
-exec_always --no-startup-id /home/sebastien/Projets/ocaml/i3_workspaces/i3_workspaces
-exec_always --no-startup-id /home/sebastien/scripts/i3/gaps.sh
diff --git a/i3/.config/i3/workspaces/50:pdf_edit.json b/i3/.config/i3/workspaces/50:pdf_edit.json
deleted file mode 100644
index e975aff..0000000
--- a/i3/.config/i3/workspaces/50:pdf_edit.json
+++ /dev/null
@@ -1,75 +0,0 @@
-// vim:ts=4:sw=4:et
-{
- // splitv split container with 2 children
- "border": "pixel",
- "floating": "auto_off",
- "layout": "splitv",
- "percent": 0.5,
- "type": "con",
- "nodes": [
- {
- // splith split container with 1 children
- "border": "pixel",
- "floating": "auto_off",
- "layout": "splith",
- "percent": 0.8,
- "type": "con",
- "nodes": [
- {
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "percent": 1,
- "swallows": [
- {
- "class": "^MuPDF$",
- "instance": "^mupdf$"
- },
- {
- "class": "^Zathura$",
- "instance": "^zathura$"
- }
- ],
- "type": "con"
- }
- ]
- },
- {
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "percent": 0.20,
- "swallows": [
- {
- "class": "^URxvt$",
- "instance": "rxvt$",
- // Prevent vim to be here
- "title": "^((?!vim).)*$"
- },
- {
- "class": "^kitty$",
- "instance": "kitty$",
- // Prevent vim to be here
- "title": "^((?!vim).)*$"
- }
- ],
- "type": "con"
- }
- ]
-}
-
-{
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "name": "vim",
- "swallows": [
- {
- "class": "^URxvt$",
- "instance": "rxvt$",
- "title": "^(vim)|(nvim)$"
- }
- ],
- "type": "con"
-}
-
diff --git a/i3/.config/i3/workspaces/51:code.json b/i3/.config/i3/workspaces/51:code.json
deleted file mode 100644
index 4d9a53b..0000000
--- a/i3/.config/i3/workspaces/51:code.json
+++ /dev/null
@@ -1,86 +0,0 @@
-// vim:ts=4:sw=4:et
-{
- // splitv split container with 2 children
- "border": "pixel",
- "floating": "auto_off",
- "layout": "splitv",
- "percent": 0.55,
- "type": "con",
- "nodes": [
- {
- // splith split container with 1 children
- "border": "pixel",
- "floating": "auto_off",
- "layout": "splith",
- "percent": 0.8,
- "type": "con",
- "nodes": [
- {
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "geometry": {
- "height": 945,
- "width": 745,
- "x": 10,
- "y": 10
- },
- "percent": 1,
- "swallows": [
- {"class": "^(Pcmanfm)$"},
- {"class": "^(pcmanfm-qt)$"},
- {"class": "^(Thunar)$"}
- ],
- "type": "con"
- }
- ]
- },
- {
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "geometry": {
- "height": 408,
- "width": 720,
- "x": 0,
- "y": 0
- }
- , "percent": 0.202941176470588
- , "swallows":
- [ { "class": "^URxvt$"
- , "instance": "^urxvt$"
- , "title": "^((?!vim).)*$" // Prevent vim to be here
- }
- , { "class": "^kitty$"
- , "instance": "kitty$"
- , "title": "^((?!vim).)*$" // Prevent vim to be here
- }
- ]
- , "type": "con"
- }
- ]
-}
-
-{
- "border": "pixel",
- "current_border_width": 2,
- "floating": "auto_off",
- "geometry": {
- "height": 408,
- "width": 720,
- "x": 0,
- "y": 0
- },
- "name": "vim",
- "percent": 0.5,
- "swallows":
- [ { "class": "^URxvt$"
- , "instance": "rxvt$"
- , "title": "^(nvim)|(vim)$"
- }
- , { "class": "XTerm"
- , "title": "^(nvim)|(vim)$"
- }
- ],
- "type": "con"
-}
diff --git a/i3/scripts/i3/gaps.sh b/i3/scripts/i3/gaps.sh
deleted file mode 100755
index d1f1a6f..0000000
--- a/i3/scripts/i3/gaps.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-i3-msg gaps inner all set 15
-i3-msg gaps outer all set 0
-
diff --git a/i3/scripts/i3/negate_color.py b/i3/scripts/i3/negate_color.py
deleted file mode 100644
index a7f985c..0000000
--- a/i3/scripts/i3/negate_color.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-import sys
-
-def RGBToHTMLColor(rgb_tuple):
- """ convert an (R, G, B) tuple to #RRGGBB """
- hexcolor = '#%02x%02x%02x' % rgb_tuple
- # that's it! '%02x' means zero-padded, 2-digit hex values
- return hexcolor
-
-def HTMLColorToRGB(colorstring):
- """ convert #RRGGBB to an (R, G, B) tuple """
- colorstring = colorstring.strip()
- if colorstring[0] == '#': colorstring = colorstring[1:]
- if len(colorstring) != 6:
- raise ValueError, "input #%s is not in #RRGGBB format" % colorstring
- r, g, b = colorstring[:2], colorstring[2:4], colorstring[4:]
- r, g, b = [int(n, 16) for n in (r, g, b)]
- return (r, g, b)
-
-
-if __name__ == "__main__":
- r, g, b = HTMLColorToRGB(sys.argv[1])
- print RGBToHTMLColor((255 -r, 255-g, 255-b))
diff --git a/i3/scripts/i3/wallpaper.sh b/i3/scripts/i3/wallpaper.sh
deleted file mode 100755
index 9bf88d4..0000000
--- a/i3/scripts/i3/wallpaper.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-#image=$(find ~/wallpaper/wallpaper/wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | shuf -n1 -z | xargs -0)
-image=$1
-
-#height=$(identify -format '%[fx:h/1.11]' ${image})
-#convert -crop %100x10+0+${height} ${image} out.jpg
-#color=$(.virtualenvs/pywal/bin/colorz -n 1 --no-preview out.jpg | cut -d' ' -f1)
-#rm out.jpg
-#echo $color
-#neg=$(python ~/scripts/i3/negate_color.py "${color}")
-
-#.virtualenvs/pywal/bin/wal -n -i "${image}" --saturate .8 -a 90
-#hsetroot \
-# -fill "${image}" \
-# -add "#ffffffff" \
-# -addd "#77777700" 5 \
-# -addd "#ffffff00" 10 \
-# -addd "#ffffff00" 90 \
-# -gradient 0
-
-if [ -z "${VNCDESKTOP}" ]; then
- hsetroot \
- -fill "${image}" \
- -add "#ffffff77" \
- -addd "#ffffff77" 2 \
- -addd "#ffffff00" 0 \
- -addd "#ffffff00" 90 \
- -gradient 0
-else
- #dominant=$(hexdump -n 3 -e '"%06X" 1 "\n"' /dev/urandom)
-
- # Traverse the chromatic circle in 5 hours
- cutoff=18000
-
- dominant=$(python3 -c "import colorsys ; import datetime ; now = datetime.datetime.now() ; min = datetime.datetime.min ; sec = (now - min).seconds % $cutoff ; print(''.join('%02x' % int(i*255) for i in colorsys.hsv_to_rgb(sec/$cutoff, 0.35, 1)))")
- hsetroot \
- -solid "#${dominant}" \
- -add "#d8dee9ff" \
- -addd "#d8dee9ff" 5 \
- -addd "#ffffff77" 40 \
- -addd "#ffffff77" 90 \
- -addd "#F0F0F0FF" 40 \
- -addd "#F0F0F0" 5 \
- -gradient 0
-fi
diff --git a/i3_workspaces/.config/i3_workspaces/config b/i3_workspaces/.config/i3_workspaces/config
deleted file mode 100644
index baac590..0000000
--- a/i3_workspaces/.config/i3_workspaces/config
+++ /dev/null
@@ -1,36 +0,0 @@
-[global]
-image=~/wallpaper/i3_wallpapers/default.jpg
-on_focus=~/scripts/i3/wallpaper.sh ${image}
-#on_empty=i3-msg append_layout /home/sebastien/Projets/ocaml/i3_workspaces/swallows.json
-#on_empty=xmessage -timeout 5 \"Don't close me\"
-layout=binary
-
-[1:]
-image=~/wallpaper/i3_wallpapers/Great_Wave_off_Kanagawa2.jpg
-
-[2:]
-image=~/wallpaper/cerisier.jpg
-
-[3:]
-image=~/wallpaper/i3_wallpapers/3.jpg
-
-[4:]
-image=~/wallpaper/i3_wallpapers/4.jpg
-
-[5:]
-image=~/wallpaper/i3_wallpapers/2.jpg
-
-[6:]
-image=~/wallpaper/i3_wallpapers/6.jpg
-
-[51:]
-image=~/wallpaper/i3_wallpapers/5.jpg
-
-[mail:]
-on_init=thunderbird
-on_init_swallow_class=thunderbird
-
-[web:]
-image=~/wallpaper/i3_wallpapers/ESnflJn.jpg
-on_init=firefox
-on_init_swallow_class=Firefox-esr